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>
Thu, 24 Sep 2015 01:33:01 +0000 (21:33 -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 900df559a78ea42284c6079be77b0f27058dca83..6545a5ef21d3d99bbb39c81587839380bed06ee3 100644 (file)
@@ -2075,6 +2075,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.028081 seconds and 4 git commands to generate.