Fix: sessiond: double socket close on allocation failure
authorJérémie Galarneau <jeremie.galarneau@efficios.com>
Tue, 8 Oct 2019 19:15:28 +0000 (15:15 -0400)
committerJérémie Galarneau <jeremie.galarneau@efficios.com>
Tue, 8 Oct 2019 19:15:28 +0000 (15:15 -0400)
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 <jeremie.galarneau@efficios.com>

No differences found
This page took 0.025017 seconds and 4 git commands to generate.