Fix: double put on error path
authorJonathan Rajotte <jonathan.rajotte-julien@efficios.com>
Tue, 11 Sep 2018 00:09:11 +0000 (20:09 -0400)
committerJonathan Rajotte <jonathan.rajotte-julien@efficios.com>
Fri, 21 Sep 2018 04:31:29 +0000 (00:31 -0400)
commitc27c3f5a6a9ead7ffc150a557354cbc644c17dc6
treef6ad0781a8dcf3ae0ec0c8d786459587e634e615
parent097da1af8827ae4c038e0ede0f4efbe339e9b9fd
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 <jonathan.rajotte-julien@efficios.com>
Signed-off-by: Jérémie Galarneau <jeremie.galarneau@efficios.com>
src/bin/lttng-relayd/main.c
This page took 0.027578 seconds and 5 git commands to generate.