From: Jérémie Galarneau Date: Mon, 9 Sep 2019 15:14:47 +0000 (-0400) Subject: Fix: uninitialized directory handle finalized on error path X-Git-Tag: v2.12.0-rc1~426 X-Git-Url: https://git.lttng.org/?p=lttng-tools.git;a=commitdiff_plain;h=0ccc041129a301ccfea4624755d21fbd2e2625de;hp=0ccc041129a301ccfea4624755d21fbd2e2625de Fix: uninitialized directory handle finalized on error path relay_create_trace_chunk() creates a session output directory handle and assigns it to a trace chunk. Since a handle doesn't have a dedicated "uninitialized" state, reduce its lifetime and don't generically finalize it in error paths. Signed-off-by: Jérémie Galarneau ---