summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJohn Ernberg <john.ernberg@actia.se>2016-04-22 13:10:06 +0000
committerDenis Kenzior <denkenz@gmail.com>2016-04-22 15:28:05 -0500
commit3887e33e0071c84fb7a7d8aa4892cddc3813163b (patch)
tree44870a0da23a7d1ae291f442caf5234c994efdf1
parentf987e0b3117b585cb7f9abbfe83c4cfc1ff2eca8 (diff)
downloadofono-3887e33e0071c84fb7a7d8aa4892cddc3813163b.tar.gz
cdma-smsutil: Use g_slist_free_full
-rw-r--r--src/cdma-smsutil.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/src/cdma-smsutil.c b/src/cdma-smsutil.c
index e36f2e3a..35b77e0b 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;
}