summaryrefslogtreecommitdiffstats
path: root/unit/test-util.c
diff options
context:
space:
mode:
authorDenis Kenzior <denkenz@gmail.com>2009-07-06 19:38:44 -0500
committerDenis Kenzior <denkenz@gmail.com>2009-07-06 19:38:44 -0500
commita51700abf54bb74b6e8ea36151fadc905fcd7241 (patch)
treee12a52cdb7df9295e8564fe64b0c4fb2bc3ccc4b /unit/test-util.c
parentc093a75f89389835f7ac2d51b92bed3ee3acd761 (diff)
downloadofono-a51700abf54bb74b6e8ea36151fadc905fcd7241.tar.bz2
Fix another small memory leak in unit tests
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);