Skip to content

Commit

Permalink
[unit] Fixed memory leak in test-simutil
Browse files Browse the repository at this point in the history
==7578==    at 0x4C2AB80: malloc
==7578==    by 0x4E856D0: g_malloc
==7578==    by 0x4E9B2ED: g_slice_alloc
==7578==    by 0x4E9C0C5: g_slist_prepend
==7578==    by 0x40EC77: sim_parse_app_template_entries (simutil.c:1604)
==7578==    by 0x405AF6: test_application_entry_decode (test-simutil.c:487)
==7578==    by 0x4EA3D05: g_test_run_suite_internal
==7578==    by 0x4EA405A: g_test_run_suite
==7578==    by 0x4EA4090: g_test_run
==7578==    by 0x40714E: main (test-simutil.c:655)
  • Loading branch information
monich committed Sep 24, 2019
1 parent 4d6aefc commit c04b14c
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions ofono/unit/test-simutil.c
Expand Up @@ -501,6 +501,7 @@ static void test_application_entry_decode(void)
g_assert(!strcmp(app[1]->label, "MIDPfiles"));

g_free(ef_dir);
g_slist_free_full(entries, (GDestroyNotify) sim_app_record_free);
}

static void test_get_3g_path(void)
Expand Down

0 comments on commit c04b14c

Please sign in to comment.