Fix: trace-ir.hpp: spurious reference on object creation
authorFrancis Deslauriers <francis.deslauriers@efficios.com>
Mon, 30 May 2022 19:55:14 +0000 (15:55 -0400)
committerPhilippe Proulx <eeppeliteloop@gmail.com>
Mon, 11 Sep 2023 15:24:02 +0000 (11:24 -0400)
commit69d96f808107fa18e4d2ee49b058dfa324dae506
treebedf8149eb9f2aa4c4d9a3f881cd93f47c565957
parent6405220421b01707584d269c7a8eaad1250f2311
Fix: trace-ir.hpp: spurious reference on object creation

We create a variant field class, which initially has refcount == 1.  We
then call `.shared()`, which creates another reference, bringing the
refcount to 2.

Fix that by using the `Shared::createWithoutRef()` method.

Signed-off-by: Francis Deslauriers <francis.deslauriers@efficios.com>
Change-Id: Idfe8184497a00d3192e390017d7717c7ff9a3344
Reviewed-on: https://review.lttng.org/c/babeltrace/+/8187
Reviewed-by: Philippe Proulx <eeppeliteloop@gmail.com>
Reviewed-on: https://review.lttng.org/c/babeltrace/+/10830
Tested-by: jenkins <jenkins@lttng.org>
CI-Build: Philippe Proulx <eeppeliteloop@gmail.com>
src/cpp-common/bt2/trace-ir.hpp
This page took 0.02523 seconds and 4 git commands to generate.