Add a missing return code check to a call to 'lttng_file_ref_put()'
which is marked as 'must_check', otherwise it results in a build
failure when using -Werror.
Change-Id: Ib50ec669ffc0fe87a367b25b788518d148f7a85e
Signed-off-by: Michael Jeanson <mjeanson@efficios.com>
Signed-off-by: Mathieu Desnoyers <mathieu.desnoyers@efficios.com>
return file_fd;
open_error:
- lttng_file_ref_put(session->priv->file);
+ if (!lttng_file_ref_put(session->priv->file)) {
+ /* Don't change return code */
+ }
refcount_error:
fput(tracker_ids_list_file);
file_error: