aboutsummaryrefslogtreecommitdiffstats
path: root/tests
diff options
context:
space:
mode:
authorNeels Hofmeyr <neels@hofmeyr.de>2017-11-16 17:34:07 +0100
committerHarald Welte <laforge@gnumonks.org>2017-11-18 10:30:58 +0000
commit9a938ae882a4d21f132291136c92d5311b84d7e2 (patch)
tree0dbf9abbc22704952473941c6b96ca282c50c467 /tests
parentd8e79c7fff7f1b004551589a0eb32026e5cba812 (diff)
gsm0808_test: sanitize: fix msgb memleak
Helps fix sanitizer build on debian 9. Change-Id: I0097d63bbb4e7ee20eb4a8474f4fef32d39e625f
Diffstat (limited to 'tests')
-rw-r--r--tests/gsm0808/gsm0808_test.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/tests/gsm0808/gsm0808_test.c b/tests/gsm0808/gsm0808_test.c
index 68771a45..28bd7f72 100644
--- a/tests/gsm0808/gsm0808_test.c
+++ b/tests/gsm0808/gsm0808_test.c
@@ -256,6 +256,8 @@ static void test_create_cm_u()
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));