Minor Fix: ip-conflict: set sd to NULL after g_free()
[platform/core/connectivity/net-config.git] / 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;
        }