Fix: sessiond: double socket close on allocation failure
[lttng-tools.git] / src / bin / lttng-sessiond / register.c
index c7e3de66ff1f22ac378731b8228f10b84634a30f..36e1a0d31f0a8524e3a47a5962b4ce7a4698f7ce 100644 (file)
@@ -278,6 +278,7 @@ static void *thread_application_registration(void *data)
                                                if (ret) {
                                                        PERROR("close");
                                                }
+                                               sock = -1;
                                                goto error;
                                        }
 
This page took 0.023387 seconds and 4 git commands to generate.