Fix: sessiond add missing socket close
[lttng-tools.git] / src / bin / lttng-sessiond / main.c
index d284debd695e76787189f5f5b7cae256a67bf3e2..cb3b17cdd59c2e19bb254d983711d58e38fbb7ec 100644 (file)
@@ -2157,6 +2157,10 @@ static void *thread_registration_apps(void *data)
                                        ust_cmd = zmalloc(sizeof(struct ust_command));
                                        if (ust_cmd == NULL) {
                                                PERROR("ust command zmalloc");
+                                               ret = close(sock);
+                                               if (ret) {
+                                                       PERROR("close");
+                                               }
                                                goto error;
                                        }
 
This page took 0.031172 seconds and 4 git commands to generate.