Fix: release reference to ltt_session on error instead of free()
authorJérémie Galarneau <jeremie.galarneau@efficios.com>
Tue, 26 Feb 2019 03:05:32 +0000 (22:05 -0500)
committerJérémie Galarneau <jeremie.galarneau@efficios.com>
Tue, 26 Mar 2019 18:41:05 +0000 (14:41 -0400)
commitf4cc5e83435948e64f5c7bce395ca19703da02a3
tree91a6d8ba41651dc0121c41d3513a99e541c7ab56
parent4c6885d2d540ce66b9050e9f90c49575fb76dde0
Fix: release reference to ltt_session on error instead of free()

Since ltt_session objects within the session daemon are now
reference counted, it is more appropriate to release a reference
on error rather than calling free() directly in session_create().

The session_release() function also performs additional that can
be needed in some of the error paths of session_create().

Signed-off-by: Jérémie Galarneau <jeremie.galarneau@efficios.com>
src/bin/lttng-sessiond/session.c
src/bin/lttng-sessiond/session.h
src/bin/lttng-sessiond/snapshot.c
This page took 0.025395 seconds and 4 git commands to generate.