From: John Ernberg <[email protected]>

---
 src/cdma-smsutil.c | 3 +--
 1 file changed, 1 insertion(+), 2 deletions(-)

diff --git a/src/cdma-smsutil.c b/src/cdma-smsutil.c
index e36f2e3..35b77e0 100644
--- a/src/cdma-smsutil.c
+++ b/src/cdma-smsutil.c
@@ -533,8 +533,7 @@ static gboolean decode_subparams(struct simple_iter *iter, 
guint32 *bitmap,
                }
        }
 
-       g_slist_foreach(entries, (GFunc) g_free, NULL);
-       g_slist_free(entries);
+       g_slist_free_full(entries, g_free);
 
        return decode_result;
 }
-- 
1.9.1
_______________________________________________
ofono mailing list
[email protected]
https://lists.ofono.org/mailman/listinfo/ofono

Reply via email to