[MERGED] libosmocore[master]: gsm0808_test: sanitize: fix msgb memleak

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:30:58 UTC 2017


Harald Welte has submitted this change and it was merged.

Change subject: gsm0808_test: sanitize: fix msgb memleak
......................................................................


gsm0808_test: sanitize: fix msgb memleak

Helps fix sanitizer build on debian 9.

Change-Id: I0097d63bbb4e7ee20eb4a8474f4fef32d39e625f
---
M tests/gsm0808/gsm0808_test.c
1 file changed, 2 insertions(+), 0 deletions(-)

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



diff --git a/tests/gsm0808/gsm0808_test.c b/tests/gsm0808/gsm0808_test.c
index 68771a4..28bd7f7 100644
--- a/tests/gsm0808/gsm0808_test.c
+++ b/tests/gsm0808/gsm0808_test.c
@@ -256,6 +256,8 @@
 	msg = gsm0808_create_classmark_update(&cm2, 1, &cm3, 1);
 	VERIFY(msg, res, ARRAY_SIZE(res));
 
+	msgb_free(msg);
+
 	msg = gsm0808_create_classmark_update(&cm2, 1, NULL, 0);
 	VERIFY(msg, res2o, ARRAY_SIZE(res2o));
 

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

Gerrit-MessageType: merged
Gerrit-Change-Id: I0097d63bbb4e7ee20eb4a8474f4fef32d39e625f
Gerrit-PatchSet: 2
Gerrit-Project: libosmocore
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