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/simtrace2-remsim_client.c b/src/simtrace2-remsim_client.c
index f87ce85..8f01b2f 100644
--- a/src/simtrace2-remsim_client.c
+++ b/src/simtrace2-remsim_client.c
@@ -679,7 +679,7 @@
static void handle_sig_usr1(int signal)
{
OSMO_ASSERT(signal == SIGUSR1);
- talloc_report(g_tall_ctx, stderr);
+ talloc_report_full(g_tall_ctx, stderr);
}
static void print_welcome(void)
@@ -817,6 +817,7 @@
signal(SIGUSR1, handle_sig_usr1);
g_tall_ctx = talloc_named_const(NULL, 0, "global");
+ talloc_asn1_ctx = talloc_named_const(g_tall_ctx, 0, "asn1");
osmo_init_logging2(g_tall_ctx, &log_info);
rc = libusb_init(NULL);