Browse Source

common: check for outstanding taken() pointers in common_shutdown.

Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>
fix-mocks
Rusty Russell 4 years ago
parent
commit
39f4ca98b5
  1. 4
      common/setup.c

4
common/setup.c

@ -44,6 +44,10 @@ void common_setup(const char *argv0)
void common_shutdown(void)
{
const char *p = taken_any();
if (p)
errx(1, "outstanding taken(): %s", p);
take_cleanup();
tal_free(tmpctx);
wally_cleanup(0);
tal_free(wally_tal_ctx);

Loading…
Cancel
Save