tests: detect and close leaks in unit tests.

Fixes: #288
Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>
This commit is contained in:
Rusty Russell
2017-09-28 13:10:05 +09:30
parent 5029f95066
commit 7200002773
3 changed files with 4 additions and 1 deletions

View File

@@ -268,6 +268,7 @@ int main(int argc, char **argv)
printf("%s\n", hextemp);
}
secp256k1_context_destroy(secp256k1_ctx);
opt_free_table();
tal_free(ctx);
return 0;
}