summaryrefslogtreecommitdiffstats
path: root/unit/test-util.c
diff options
context:
space:
mode:
Diffstat (limited to 'unit/test-util.c')
-rw-r--r--unit/test-util.c4
1 files changed, 3 insertions, 1 deletions
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);