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>
Fri, 29 Mar 2019 15:47:56 +0000 (11:47 -0400)
commit56ca63c0c5a9aab20b11da9cb26de311b57120bd
tree7b6109685e584279cda3aee429644cf5537b7334
parentc7bb28d33fb7cdc8dd5484739a94beb3cb1f869a
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.025729 seconds and 4 git commands to generate.