From bc495ceca26a663a7915aa6ab49d500b2f911188 Mon Sep 17 00:00:00 2001 From: Rahul Jain Date: Sat, 11 Jul 2020 10:46:13 +0530 Subject: [PATCH] Minor Fix: ip-conflict: set sd to NULL after g_free() Change-Id: If24218a86e7cad6b317dcc4fd51ee759b4af885f --- src/ip-conflict-detect.c | 1 + 1 file changed, 1 insertion(+) 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; } -- 2.34.1