diff --git a/plugins/libplugin.c b/plugins/libplugin.c index 6af90b37f..c4a44b1fd 100644 --- a/plugins/libplugin.c +++ b/plugins/libplugin.c @@ -1029,7 +1029,7 @@ struct plugin_timer *plugin_timer_(struct plugin *p, struct timerel t, void (*cb)(void *cb_arg), void *cb_arg) { - struct plugin_timer *timer = tal(NULL, struct plugin_timer); + struct plugin_timer *timer = notleak(tal(NULL, struct plugin_timer)); timer->cb = cb; timer->cb_arg = cb_arg; timer_init(&timer->timer);