[MERGED] libosmo-sccp[master]: xua_test: sanitize: fix msgb leak

This is merely a historical archive of years 2008-2021, before the migration to mailman3.

A maintained and still updated list archive can be found at https://lists.osmocom.org/hyperkitty/list/gerrit-log@lists.osmocom.org/.

Harald Welte gerrit-no-reply at lists.osmocom.org
Sat Nov 18 10:19:05 UTC 2017


Harald Welte has submitted this change and it was merged.

Change subject: xua_test: sanitize: fix msgb leak
......................................................................


xua_test: sanitize: fix msgb leak

Change-Id: Ie57e803bb6361f39042084a21cada754a6506606
---
M tests/xua/xua_test.c
1 file changed, 3 insertions(+), 0 deletions(-)

Approvals:
  Harald Welte: Looks good to me, approved
  Jenkins Builder: Verified



diff --git a/tests/xua/xua_test.c b/tests/xua/xua_test.c
index 5a9d0ab..3e370fe 100644
--- a/tests/xua/xua_test.c
+++ b/tests/xua/xua_test.c
@@ -564,6 +564,9 @@
 	OSMO_ASSERT(nested);
 	OSMO_ASSERT(xua_msg_get_u32(nested, M3UA_IEI_LOC_RKEY_ID) == 1);
 	OSMO_ASSERT(xua_msg_get_u32(nested, M3UA_IEI_DEST_PC) == 23);
+
+	talloc_free(nested);
+	talloc_free(xua);
 }
 
 

-- 
To view, visit https://gerrit.osmocom.org/4882
To unsubscribe, visit https://gerrit.osmocom.org/settings

Gerrit-MessageType: merged
Gerrit-Change-Id: Ie57e803bb6361f39042084a21cada754a6506606
Gerrit-PatchSet: 2
Gerrit-Project: libosmo-sccp
Gerrit-Branch: master
Gerrit-Owner: Neels Hofmeyr <nhofmeyr at sysmocom.de>
Gerrit-Reviewer: Harald Welte <laforge at gnumonks.org>
Gerrit-Reviewer: Jenkins Builder



More information about the gerrit-log mailing list