[PATCH] 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/.

Neels Hofmeyr gerrit-no-reply at lists.osmocom.org
Fri Nov 17 02:34:19 UTC 2017


Review at  https://gerrit.osmocom.org/4882

xua_test: sanitize: fix msgb leak

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


  git pull ssh://gerrit.osmocom.org:29418/libosmo-sccp refs/changes/82/4882/1

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: newchange
Gerrit-Change-Id: Ie57e803bb6361f39042084a21cada754a6506606
Gerrit-PatchSet: 1
Gerrit-Project: libosmo-sccp
Gerrit-Branch: master
Gerrit-Owner: Neels Hofmeyr <nhofmeyr at sysmocom.de>



More information about the gerrit-log mailing list