diff options
author | Denis Kenzior <denkenz@gmail.com> | 2010-07-02 14:50:05 -0500 |
---|---|---|
committer | Denis Kenzior <denkenz@gmail.com> | 2010-07-02 14:50:05 -0500 |
commit | b7badc74ad8ed2f3ea7948e8b75b63eaa0c80a10 (patch) | |
tree | c5d5e42dce8f16fbca095ba1cfcbd8e04c3abfdf /unit | |
parent | 365183d5a08114c4ad51363dfa2a820bdce577d9 (diff) | |
download | ofono-b7badc74ad8ed2f3ea7948e8b75b63eaa0c80a10.tar.bz2 |
test-stkutil: Fix some memory leaks
Diffstat (limited to 'unit')
-rw-r--r-- | unit/test-stkutil.c | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/unit/test-stkutil.c b/unit/test-stkutil.c index 7fa485bd..0480daf0 100644 --- a/unit/test-stkutil.c +++ b/unit/test-stkutil.c @@ -305,6 +305,7 @@ static inline void check_ussd(const struct stk_ussd_string *command, { char *utf8 = ussd_decode(command->dcs, command->len, command->string); check_common_text(utf8, test); + g_free(utf8); } /* Defined in TS 102.223 Section 8.18 */ @@ -5567,6 +5568,8 @@ static void test_setup_menu_missing_val(gconstpointer data) g_assert(command); g_assert(command->status == STK_PARSE_RESULT_MISSING_VALUE); + + stk_command_free(command); } static void test_setup_menu_neg(gconstpointer data) @@ -5578,6 +5581,8 @@ static void test_setup_menu_neg(gconstpointer data) g_assert(command); g_assert(command->status == STK_PARSE_RESULT_DATA_NOT_UNDERSTOOD); + + stk_command_free(command); } struct select_item_test { |