From 72d83898da16015361c2fed216fe797678fca427 Mon Sep 17 00:00:00 2001 From: Aleksander Morgado Date: Sun, 26 Jan 2014 11:01:42 +0100 Subject: [PATCH] huawei: fix some leaked 'GStrv' arrays --- plugins/huawei/mm-modem-helpers-huawei.c | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/plugins/huawei/mm-modem-helpers-huawei.c b/plugins/huawei/mm-modem-helpers-huawei.c index 07a56979..656c6de0 100644 --- a/plugins/huawei/mm-modem-helpers-huawei.c +++ b/plugins/huawei/mm-modem-helpers-huawei.c @@ -647,6 +647,8 @@ parse_syscfg_modes (const gchar *modes_str, } } + g_strfreev (split); + /* If we didn't build a valid array of combinations, return an error */ if (out->len == 0) { g_set_error (error, @@ -883,6 +885,8 @@ parse_mode_combination_string_list (const gchar *modes_str, } } + g_strfreev (mode_combinations); + /* Add here the all_combination */ if (has_all) { MMHuaweiSyscfgexCombination combination;