client: Enable talloc NULL context tracking

Change-Id: I41ac5437e9262cf9e5a6e92db9b733902c91755b
This commit is contained in:
Harald Welte 2019-12-14 17:21:08 +01:00
parent 9636d2b090
commit f918748208
1 changed files with 3 additions and 0 deletions

View File

@ -809,6 +809,8 @@ static void handle_sig_usr1(int signal)
{
OSMO_ASSERT(signal == SIGUSR1);
talloc_report_full(g_tall_ctx, stderr);
printf("===== NULL\n");
talloc_report_full(NULL, stderr);
}
static void print_welcome(void)
@ -1000,6 +1002,7 @@ int main(int argc, char **argv)
print_welcome();
talloc_enable_null_tracking();
g_tall_ctx = talloc_named_const(NULL, 0, "global");
talloc_asn1_ctx = talloc_named_const(g_tall_ctx, 0, "asn1");
msgb_talloc_ctx_init(g_tall_ctx, 0);