From: Jérémie Galarneau Date: Tue, 8 Oct 2019 19:15:28 +0000 (-0400) Subject: Fix: sessiond: double socket close on allocation failure X-Git-Tag: v2.11.0~12 X-Git-Url: http://git.liburcu.org/?a=commitdiff_plain;h=2d70c828d492c82381300aeef48cdc4eeec33bf6;hp=2d70c828d492c82381300aeef48cdc4eeec33bf6;p=lttng-tools.git Fix: sessiond: double socket close on allocation failure The application registration thread performs a double close() on an application socket whenever it fails to allocate a ust_command. Assign `-1` to `sock` after the initial close() to follow the pattern of other close paths. Signed-off-by: Jérémie Galarneau ---