Fix: double put on error path
authorJonathan Rajotte <jonathan.rajotte-julien@efficios.com>
Tue, 11 Sep 2018 00:09:11 +0000 (20:09 -0400)
committerJérémie Galarneau <jeremie.galarneau@efficios.com>
Tue, 18 Sep 2018 01:32:56 +0000 (21:32 -0400)
commitb720e0e339bb499574a9873a775cdc9409b79e29
tree6dd13119e7f039e80f7487b614c475f4c23dbc1f
parent7c87fb16f7b0ae1ffc633fa421a923d2ba36b4be
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.026294 seconds and 4 git commands to generate.