[PATCH] libosmocore[master]: abis_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/.

Neels Hofmeyr gerrit-no-reply at lists.osmocom.org
Fri Nov 17 00:27:50 UTC 2017


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

abis_test: sanitize: fix msgb memleak

Helps fix sanitizer build on debian 9.

Change-Id: I69750d9cd2b8f30bfc6d2dfd9e62576e46989fab
---
M tests/abis/abis_test.c
1 file changed, 2 insertions(+), 0 deletions(-)


  git pull ssh://gerrit.osmocom.org:29418/libosmocore refs/changes/62/4862/1

diff --git a/tests/abis/abis_test.c b/tests/abis/abis_test.c
index a631712..c0605c2 100644
--- a/tests/abis/abis_test.c
+++ b/tests/abis/abis_test.c
@@ -193,6 +193,8 @@
 	/* check multiple, chained SW-descr: */
 	chk_raw("half", chain, sizeof(chain) / 2);
 	chk_raw("full", chain, sizeof(chain));
+
+	msgb_free(msg);
 }
 
 int main(int argc, char **argv)

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

Gerrit-MessageType: newchange
Gerrit-Change-Id: I69750d9cd2b8f30bfc6d2dfd9e62576e46989fab
Gerrit-PatchSet: 1
Gerrit-Project: libosmocore
Gerrit-Branch: master
Gerrit-Owner: Neels Hofmeyr <nhofmeyr at sysmocom.de>



More information about the gerrit-log mailing list