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/remsim_client.c b/src/remsim_client.c
index 38092b4..de926f7 100644
--- a/src/remsim_client.c
+++ b/src/remsim_client.c
@@ -164,7 +164,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 printf_help()
@@ -229,6 +229,7 @@
int rc;
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);