Trace IR and notification APIs: split into private and public APIs
[babeltrace.git] / lib / trace-ir / resolve-field-path.c
index 8334d18bbd80c27c62aae216f7a2f655e868d8a0..1b690be76a790e5dfa9bb1d906f6462e7232671a 100644 (file)
@@ -25,6 +25,7 @@
 
 #include <babeltrace/assert-pre-internal.h>
 #include <babeltrace/assert-internal.h>
+#include <babeltrace/object.h>
 #include <babeltrace/trace-ir/field-classes-internal.h>
 #include <babeltrace/trace-ir/field-path-internal.h>
 #include <babeltrace/trace-ir/field-path.h>
@@ -109,7 +110,7 @@ int find_field_class(struct bt_field_class *root_fc,
        field_path->root = root_scope;
        if (!find_field_class_recursive(root_fc, tgt_fc, field_path)) {
                /* Not found here */
-               BT_PUT(field_path);
+               BT_OBJECT_PUT_REF_AND_RESET(field_path);
        }
 
 end:
@@ -510,8 +511,8 @@ bool field_path_is_valid(struct bt_field_class *src_fc,
        }
 
 end:
-       bt_put(src_field_path);
-       bt_put(tgt_field_path);
+       bt_object_put_ref(src_field_path);
+       bt_object_put_ref(tgt_field_path);
        return is_valid;
 }
 
This page took 0.023449 seconds and 4 git commands to generate.