Fix: sessiond add missing socket close
authorMathieu Desnoyers <mathieu.desnoyers@efficios.com>
Tue, 18 Aug 2015 01:47:53 +0000 (18:47 -0700)
committerJérémie Galarneau <jeremie.galarneau@efficios.com>
Wed, 2 Sep 2015 16:57:37 +0000 (12:57 -0400)
Signed-off-by: Mathieu Desnoyers <mathieu.desnoyers@efficios.com>
Signed-off-by: Jérémie Galarneau <jeremie.galarneau@efficios.com>
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.027609 seconds and 4 git commands to generate.