Fix: src.ctf.lttng-live: leaking late message after fixing
authorFrancis Deslauriers <francis.deslauriers@efficios.com>
Thu, 11 Nov 2021 18:11:12 +0000 (13:11 -0500)
committerFrancis Deslauriers <francis.deslauriers@efficios.com>
Fri, 12 Nov 2021 14:08:21 +0000 (09:08 -0500)
The late message is replaced by a new one with a correct timestamp, we
need to put the reference we have on it.

Signed-off-by: Francis Deslauriers <francis.deslauriers@efficios.com>
Change-Id: I124c9da9b29d05ee85ece4c32505655e87b3b43e
Reviewed-on: https://review.lttng.org/c/babeltrace/+/6704
Tested-by: jenkins <jenkins@lttng.org>
Reviewed-by: Philippe Proulx <eeppeliteloop@gmail.com>
src/plugins/ctf/lttng-live/lttng-live.c

index f091ae6e6335d282dfae1123be214f6708c84533..e15d8b04717efad4f53d294fa2aa994d608d0617 100644 (file)
@@ -1267,6 +1267,7 @@ enum lttng_live_iterator_status handle_late_message(
        BT_ASSERT_DBG(adjusted_message);
        stream_iter->current_msg = adjusted_message;
        stream_iter->current_msg_ts_ns = last_inactivity_ts_ns;
+       bt_message_put_ref(late_msg);
 
 end:
        return stream_iter_status;
This page took 0.026667 seconds and 4 git commands to generate.