From: Mathieu Desnoyers Date: Tue, 18 Aug 2015 01:47:53 +0000 (-0700) Subject: Fix: sessiond add missing socket close X-Git-Tag: v2.6.1~60 X-Git-Url: https://git.lttng.org./?a=commitdiff_plain;h=18441883a5f92f32b0604fd3030108b1e99cdcec;p=lttng-tools.git Fix: sessiond add missing socket close Signed-off-by: Mathieu Desnoyers Signed-off-by: Jérémie Galarneau --- diff --git a/src/bin/lttng-sessiond/main.c b/src/bin/lttng-sessiond/main.c index 900df559a..6545a5ef2 100644 --- a/src/bin/lttng-sessiond/main.c +++ b/src/bin/lttng-sessiond/main.c @@ -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; }