From a51700abf54bb74b6e8ea36151fadc905fcd7241 Mon Sep 17 00:00:00 2001 From: Denis Kenzior Date: Mon, 6 Jul 2009 19:38:44 -0500 Subject: [PATCH] Fix another small memory leak in unit tests --- unit/test-util.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/unit/test-util.c b/unit/test-util.c index c41ab81a..5bd73e8d 100644 --- a/unit/test-util.c +++ b/unit/test-util.c @@ -339,7 +339,9 @@ static void test_decode_encode() packed = pack_7bit(gsm_encoded, -1, 0, FALSE, &packed_size, 0xff); - g_assert(gsm_encoded != NULL); + g_free(gsm_encoded); + + g_assert(packed != NULL); if (g_test_verbose()) g_print("Packed GSM to size of %ld bytes\n", packed_size);