From d8e79c7fff7f1b004551589a0eb32026e5cba812 Mon Sep 17 00:00:00 2001 From: Neels Hofmeyr Date: Thu, 16 Nov 2017 17:30:44 +0100 Subject: gsm0408_test: sanitize: cleanup msgb Remove initial msgb talloc context creation: if we create a root ctx for msgb that all msgb are allocated in, we would in a final cleanup discard all msgbs, i.e. we would not verify that all msgb are cleaned up properly. If we create the msgb context and *don't* clean it up in the end, the sanitizer build fails because the context root is not cleaned up. Easiest is to actually allocate all msgb at NULL ctx, because then any msgb that aren't cleaned up properly would still linger, while we don't leave a root ctx that we need to clean up either. Helps fix sanitizer build on debian 9. Change-Id: I1f2d1d05c75bbf4d92787f9735083f18cdc90f6f --- tests/gsm0408/gsm0408_test.c | 1 - 1 file changed, 1 deletion(-) (limited to 'tests/gsm0408') diff --git a/tests/gsm0408/gsm0408_test.c b/tests/gsm0408/gsm0408_test.c index 3f3a5c7e..935ec21d 100644 --- a/tests/gsm0408/gsm0408_test.c +++ b/tests/gsm0408/gsm0408_test.c @@ -197,7 +197,6 @@ static void test_mid_from_tmsi(void) int main(int argc, char **argv) { - msgb_talloc_ctx_init(NULL, 0); test_bearer_cap(); test_mid_from_tmsi(); test_ra_cap(); -- cgit v1.2.3