diff --git a/lightningd/subd.c b/lightningd/subd.c index 0db43ea96..4f7f791f6 100644 --- a/lightningd/subd.c +++ b/lightningd/subd.c @@ -10,6 +10,7 @@ #include #include #include +#include #include #include #include @@ -91,7 +92,7 @@ static void add_req(const tal_t *ctx, * case where ctx is freed between request and reply. Hence this * trick. */ if (ctx) { - sr->disabler = tal(ctx, char); + sr->disabler = notleak(tal(ctx, char)); tal_add_destructor2(sr->disabler, disable_cb, sr); } else sr->disabler = NULL;