Skip to content

Commit

Permalink
plugins/libplugin: mark timers as not-a-leak.
Browse files Browse the repository at this point in the history
Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>
  • Loading branch information
rustyrussell committed Aug 25, 2021
1 parent 15b6f66 commit 25fed32
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion plugins/libplugin.c
Original file line number Diff line number Diff line change
Expand Up @@ -1018,7 +1018,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);
Expand Down

0 comments on commit 25fed32

Please sign in to comment.