From: MyungJoo Ham Date: Fri, 11 Nov 2016 06:42:38 +0000 (+0900) Subject: Use free instead of g_free if it's given by vconf_get_str X-Git-Tag: accepted/tizen/common/20170201.171547~1^2 X-Git-Url: http://review.tizen.org/git/?p=platform%2Fcore%2Fapi%2Fconnection.git;a=commitdiff_plain;h=refs%2Fchanges%2F02%2F97102%2F1 Use free instead of g_free if it's given by vconf_get_str 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 --- diff --git a/src/connection.c b/src/connection.c index e01c914..8c49912 100755 --- a/src/connection.c +++ b/src/connection.c @@ -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; }