Use free instead of g_free if it's given by vconf_get_str 02/97102/1
authorMyungJoo Ham <myungjoo.ham@samsung.com>
Fri, 11 Nov 2016 06:42:38 +0000 (15:42 +0900)
committerMyungJoo Ham <myungjoo.ham@samsung.com>
Fri, 11 Nov 2016 06:42:38 +0000 (15:42 +0900)
vconf_get_str from buxton2 uses standard library.

So, it is recommended to use free instead of g_free because
g_free might not be a simple wrapper of free depending on
the build options of glib:
https://mail.gnome.org/archives/gtk-list/2000-July/msg00002.html

Change-Id: I0a6687dd2d303566b45746ee95b6b47f531276da
Signed-off-by: MyungJoo Ham <myungjoo.ham@samsung.com>
src/connection.c

index e01c914..8c49912 100755 (executable)
@@ -223,7 +223,7 @@ static gboolean __connection_cb_ip_changed_cb_idle(gpointer user_data)
        if (callback)
                callback(ip_addr, NULL, data);
 
-       g_free(ip_addr);
+       free(ip_addr);
 
        return FALSE;
 }
@@ -315,7 +315,7 @@ static gboolean __connection_cb_proxy_changed_cb_idle(gpointer user_data)
        if (callback)
                callback(proxy, NULL, data);
 
-       g_free(proxy);
+       free(proxy);
 
        return FALSE;
 }