From: Mathieu Desnoyers Date: Tue, 18 Aug 2015 01:47:53 +0000 (-0700) Subject: Fix: sessiond add missing socket close X-Git-Tag: v2.8.0-rc1~435 X-Git-Url: https://git.lttng.org/?p=lttng-tools.git;a=commitdiff_plain;h=41ed8e47358244890326cb14dfae889ed0adb1ba 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 d284debd6..cb3b17cdd 100644 --- a/src/bin/lttng-sessiond/main.c +++ b/src/bin/lttng-sessiond/main.c @@ -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; }