gsm0808_test: sanitize: fix msgb memleak

Helps fix sanitizer build on debian 9.

Change-Id: I0097d63bbb4e7ee20eb4a8474f4fef32d39e625f
This commit is contained in:
Neels Hofmeyr 2017-11-16 17:34:07 +01:00 committed by Harald Welte
parent d8e79c7fff
commit 9a938ae882
1 changed files with 2 additions and 0 deletions

View File

@ -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));