From: Rahul Jain Date: Sat, 11 Jul 2020 05:16:13 +0000 (+0530) Subject: Minor Fix: ip-conflict: set sd to NULL after g_free() X-Git-Tag: submit/tizen/20200716.044206^0 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=bc495ceca26a663a7915aa6ab49d500b2f911188;p=platform%2Fcore%2Fconnectivity%2Fnet-config.git Minor Fix: ip-conflict: set sd to NULL after g_free() Change-Id: If24218a86e7cad6b317dcc4fd51ee759b4af885f --- diff --git a/src/ip-conflict-detect.c b/src/ip-conflict-detect.c index b4fc04e..d84a390 100755 --- a/src/ip-conflict-detect.c +++ b/src/ip-conflict-detect.c @@ -402,6 +402,7 @@ struct sock_data * start_ip_conflict_mon(void) if (__open_channel_and_sock(sd) == -1) { INFO("__open_channel_and_sock failed"); g_free(sd); + sd = NULL; return NULL; }