plugins/libplugin: mark timers as not-a-leak.

Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>
This commit is contained in:
Rusty Russell 2021-09-07 13:36:06 +09:30 committed by Christian Decker
parent 4f4c49c88a
commit 14002915a1

View File

@ -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);