summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJohn Ernberg <john.ernberg@actia.se>2016-04-22 13:10:07 +0000
committerDenis Kenzior <denkenz@gmail.com>2016-04-22 15:30:01 -0500
commit43f9efc1fd30d38b0952467e18cec461da191038 (patch)
treeb86f2599cf534ba77b2d9afb343c27e0b47625a7
parentea0999c6262ca477f02e7fcfc7749f503aaf3a10 (diff)
downloadofono-43f9efc1fd30d38b0952467e18cec461da191038.tar.gz
network: Use g_slist_free_full
-rw-r--r--src/network.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/src/network.c b/src/network.c
index 8ad11d3f..a3d41a74 100644
--- a/src/network.c
+++ b/src/network.c
@@ -746,8 +746,7 @@ static gboolean update_operator_list(struct ofono_netreg *netreg, int total,
}
}
- g_slist_foreach(compressed, (GFunc)g_free, NULL);
- g_slist_free(compressed);
+ g_slist_free_full(compressed, g_free);
if (n)
n = g_slist_reverse(n);