From: Jonathan Rajotte Date: Tue, 11 Sep 2018 00:09:11 +0000 (-0400) Subject: Fix: double put on error path X-Git-Tag: v2.9.11~12 X-Git-Url: https://git.lttng.org/?a=commitdiff_plain;ds=sidebyside;h=695f8ee100ee631ac103456c78dc77af8aff3f3b;hp=695f8ee100ee631ac103456c78dc77af8aff3f3b;p=lttng-tools.git Fix: double put on error path Let relay_index_try_flush be responsible for the self-reference put on error path. Code flow of relay_index_try_flush is a bit tricky but the only error flow (via relay_index_file_write) will always mark the index as flushed and perform the self-reference put. Signed-off-by: Jonathan Rajotte Signed-off-by: Jérémie Galarneau ---