From 6eab13e3a722e2e155401018e3740d3f96235a24 Mon Sep 17 00:00:00 2001 From: "chleun.moon" Date: Wed, 31 May 2017 18:14:32 +0900 Subject: Fix crash during g_hash_table_destroy() Change-Id: Ia3f6081ce49035f6b9126001161c6e804af71e3a Signed-off-by: cheoleun --- vpn/plugins/vici-client.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'vpn') diff --git a/vpn/plugins/vici-client.c b/vpn/plugins/vici-client.c index 5eb16ff1..c1361e41 100644 --- a/vpn/plugins/vici-client.c +++ b/vpn/plugins/vici-client.c @@ -235,7 +235,7 @@ static void add_list_to_section(char *key, GSList *list, VICISection *section) if (section == NULL || key == NULL || list == NULL) return; - g_hash_table_insert(section->kvls, g_strdup(key), g_slist_copy(list)); + g_hash_table_insert(section->kvls, g_strdup(key), g_slist_copy_deep(list, (GCopyFunc)g_strdup, NULL)); return; } -- cgit v1.2.3