mirror of
https://github.com/aljazceru/lightning.git
synced 2026-01-06 07:34:21 +01:00
plugins/libplugin: mark timers as not-a-leak.
Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>
This commit is contained in:
committed by
Christian Decker
parent
4f4c49c88a
commit
14002915a1
@@ -1029,7 +1029,7 @@ struct plugin_timer *plugin_timer_(struct plugin *p, struct timerel t,
|
|||||||
void (*cb)(void *cb_arg),
|
void (*cb)(void *cb_arg),
|
||||||
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 = cb;
|
||||||
timer->cb_arg = cb_arg;
|
timer->cb_arg = cb_arg;
|
||||||
timer_init(&timer->timer);
|
timer_init(&timer->timer);
|
||||||
|
|||||||
Reference in New Issue
Block a user