aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--src/hlr.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/hlr.c b/src/hlr.c
index 7fdb27e..6c0cb0a 100644
--- a/src/hlr.c
+++ b/src/hlr.c
@@ -625,7 +625,12 @@ int main(int argc, char **argv)
db_close(g_hlr->dbc);
log_fini();
+ /**
+ * Report the heap state of root context, then free,
+ * so both ASAN and Valgrind are happy...
+ */
talloc_report_full(hlr_ctx, stderr);
+ talloc_free(hlr_ctx);
return 0;
}