pespin submitted this change.
1 is the latest approved patch-set.
No files were changed between the latest approved patch-set and the submitted one.
stp: Enable tracking of NULL memory context
Similar to what's done in most of the OsmoCNI programs.
This allows dumpinng the NULL context using VTY command
'show talloc-context all'.
Change-Id: I4a925967e5bb61c346cf6c4dd2c89b6aaea44b94
---
M stp/stp_main.c
1 file changed, 3 insertions(+), 0 deletions(-)
diff --git a/stp/stp_main.c b/stp/stp_main.c
index fb5d202..4a1b59b 100644
--- a/stp/stp_main.c
+++ b/stp/stp_main.c
@@ -216,6 +216,9 @@
srand(time(NULL));
+ /* Track the use of talloc NULL memory contexts */
+ talloc_enable_null_tracking();
+
tall_stp_ctx = talloc_named_const(NULL, 1, "osmo-stp");
msgb_talloc_ctx_init(tall_stp_ctx, 0);
osmo_init_logging2(tall_stp_ctx, &log_info);
To view, visit change 42213. To unsubscribe, or for help writing mail filters, visit settings.