neels submitted this change.

View Change


Approvals: pespin: Looks good to me, approved msuraev: Looks good to me, but someone else must approve Jenkins Builder: Verified
place asn1 context under hnb_ctx for better visibility

Include talloc_asn1_context in 'show talloc-context application'. It
belongs there IMO.

Related: SYS#6297
Change-Id: Iffc320c64713b225b57211da4fb95a868bf1f369
---
M src/osmo-hnbgw/hnbgw.c
1 file changed, 14 insertions(+), 1 deletion(-)

diff --git a/src/osmo-hnbgw/hnbgw.c b/src/osmo-hnbgw/hnbgw.c
index 50ada60..4885a2c 100644
--- a/src/osmo-hnbgw/hnbgw.c
+++ b/src/osmo-hnbgw/hnbgw.c
@@ -732,7 +732,7 @@
talloc_enable_null_tracking();

tall_hnb_ctx = talloc_named_const(NULL, 0, "hnb_context");
- talloc_asn1_ctx = talloc_named_const(NULL, 1, "asn1_context");
+ talloc_asn1_ctx = talloc_named_const(tall_hnb_ctx, 1, "asn1_context");
msgb_talloc_ctx_init(tall_hnb_ctx, 0);

g_hnb_gw = hnb_gw_create(tall_hnb_ctx);

To view, visit change 32522. To unsubscribe, or for help writing mail filters, visit settings.

Gerrit-Project: osmo-hnbgw
Gerrit-Branch: master
Gerrit-Change-Id: Iffc320c64713b225b57211da4fb95a868bf1f369
Gerrit-Change-Number: 32522
Gerrit-PatchSet: 2
Gerrit-Owner: neels <nhofmeyr@sysmocom.de>
Gerrit-Reviewer: Jenkins Builder
Gerrit-Reviewer: msuraev <msuraev@sysmocom.de>
Gerrit-Reviewer: neels <nhofmeyr@sysmocom.de>
Gerrit-Reviewer: pespin <pespin@sysmocom.de>
Gerrit-MessageType: merged