improve talloc memory leak debugging
* switch to talloc_report_full() on SIGUSR1
* include asn1-internal allocations in talloc report
Change-Id: I14fff863449971024002e0d5465fb7a964d67095
diff --git a/src/bankd_main.c b/src/bankd_main.c
index 178d09f..54c20ca 100644
--- a/src/bankd_main.c
+++ b/src/bankd_main.c
@@ -330,7 +330,7 @@
struct bankd_worker *worker;
/* main thread */
fprintf(stderr, "=== Talloc Report of main thread:\n");
- talloc_report(g_tall_ctx, stderr);
+ talloc_report_full(g_tall_ctx, stderr);
/* iterate over worker threads and ask them to dump their talloc state */
pthread_mutex_lock(&g_bankd->workers_mutex);
@@ -341,7 +341,7 @@
} else {
/* worker thread */
fprintf(stderr, "=== Talloc Report of %s\n", g_worker->name);
- talloc_report(g_worker->tall_ctx, stderr);
+ talloc_report_full(g_worker->tall_ctx, stderr);
}
}