Fix crash during g_hash_table_destroy() 40/131940/1 accepted/tizen/unified/20170602.154235 submit/tizen/20170601.042236
authorchleun.moon <chleun.moon@samsung.com>
Wed, 31 May 2017 09:14:32 +0000 (18:14 +0900)
committerchleun.moon <chleun.moon@samsung.com>
Wed, 31 May 2017 09:14:40 +0000 (18:14 +0900)
Change-Id: Ia3f6081ce49035f6b9126001161c6e804af71e3a
Signed-off-by: cheoleun <chleun.moon@samsung.com>
vpn/plugins/vici-client.c

index 5eb16ff..c1361e4 100644 (file)
@@ -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;
 }