pespin has submitted this change. ( https://gerrit.osmocom.org/c/libosmo-sigtran/+/42213?usp=email ) ( 1 is the latest approved patch-set. No files were changed between the latest approved patch-set and the submitted one. )Change subject: stp: Enable tracking of NULL memory context ...................................................................... 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(-) Approvals: fixeria: Looks good to me, but someone else must approve laforge: Looks good to me, approved Jenkins Builder: Verified 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 https://gerrit.osmocom.org/c/libosmo-sigtran/+/42213?usp=email To unsubscribe, or for help writing mail filters, visit https://gerrit.osmocom.org/settings?usp=email Gerrit-MessageType: merged Gerrit-Project: libosmo-sigtran Gerrit-Branch: master Gerrit-Change-Id: I4a925967e5bb61c346cf6c4dd2c89b6aaea44b94 Gerrit-Change-Number: 42213 Gerrit-PatchSet: 3 Gerrit-Owner: pespin <pespin@sysmocom.de> Gerrit-Reviewer: Jenkins Builder Gerrit-Reviewer: fixeria <vyanitskiy@sysmocom.de> Gerrit-Reviewer: laforge <laforge@osmocom.org> Gerrit-Reviewer: pespin <pespin@sysmocom.de>