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>
Tue, 8 Sep 2015 13:08:43 +0000 (09:08 -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 87345bd6ab2a115954456a38784ec19a6b99f8b3..ba35726b842b77e0712940d2154712dbbcb09c9a 100644 (file)
@@ -2153,6 +2153,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.027313 seconds and 4 git commands to generate.