Minor Fix: ip-conflict: set sd to NULL after g_free() 16/238316/1 accepted/tizen/unified/20200717.124745 submit/tizen/20200716.044206
authorRahul Jain <rahul.jain@samsung.com>
Sat, 11 Jul 2020 05:16:13 +0000 (10:46 +0530)
committerRahul Jain <rahul.jain@samsung.com>
Sat, 11 Jul 2020 05:16:13 +0000 (10:46 +0530)
Change-Id: If24218a86e7cad6b317dcc4fd51ee759b4af885f

src/ip-conflict-detect.c

index b4fc04e..d84a390 100755 (executable)
@@ -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;
        }