Found by Coverity Scan.
Signed-off-by: Philippe Proulx <eeppeliteloop@gmail.com>
Change-Id: Iaf80ac22f38e3a9dc5d09a69ac5729ece7cdd2f3
Reviewed-on: https://review.lttng.org/c/babeltrace/+/1957
Tested-by: jenkins <jenkins@lttng.org>
{
struct bt_named_field_class *named_fc = ptr;
{
struct bt_named_field_class *named_fc = ptr;
- BT_OBJECT_PUT_REF_AND_RESET(named_fc->user_attributes);
-
+ BT_OBJECT_PUT_REF_AND_RESET(named_fc->user_attributes);
finalize_named_field_class(ptr);
g_free(ptr);
}
finalize_named_field_class(ptr);
g_free(ptr);
}