From: Jérémie Galarneau Date: Tue, 26 Feb 2019 03:05:32 +0000 (-0500) Subject: Fix: release reference to ltt_session on error instead of free() X-Git-Url: http://git.efficios.com/?p=lttng-tools.git;a=commitdiff_plain;h=f4cc5e83435948e64f5c7bce395ca19703da02a3;hp=f4cc5e83435948e64f5c7bce395ca19703da02a3;ds=sidebyside 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 ---