From: Mathieu Desnoyers Date: Tue, 18 Aug 2015 01:47:53 +0000 (-0700) Subject: Fix: sessiond add missing socket close X-Git-Tag: v2.7.0-rc2~109 X-Git-Url: https://git.lttng.org./?a=commitdiff_plain;h=ba6e4263b9233648a21c2bad71dfff700cc7c1c4;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 87345bd6a..ba35726b8 100644 --- a/src/bin/lttng-sessiond/main.c +++ b/src/bin/lttng-sessiond/main.c @@ -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; }