diff --git a/lightningd/lightningd.c b/lightningd/lightningd.c index 96eab8550..1686dd213 100644 --- a/lightningd/lightningd.c +++ b/lightningd/lightningd.c @@ -365,5 +365,7 @@ int main(int argc, char *argv[]) #if DEVELOPER memleak_cleanup(); #endif + take_cleanup(); + secp256k1_context_destroy(secp256k1_ctx); return 0; }