X-Git-Url: http://git.efficios.com/?p=babeltrace.git;a=blobdiff_plain;f=lib%2Ftrace-ir%2Fattributes.c;h=c1c92032305742843a720473e070b604bf2afdc5;hp=caabda3fafe39eca4da493ed7be4dcf926157040;hb=65300d60e4b4f167e5fc8f584677757ce09a3844;hpb=07208d85d16704b304b371897bb7acc995fcc481 diff --git a/lib/trace-ir/attributes.c b/lib/trace-ir/attributes.c index caabda3f..c1c92032 100644 --- a/lib/trace-ir/attributes.c +++ b/lib/trace-ir/attributes.c @@ -28,7 +28,7 @@ #define BT_LOG_TAG "ATTRS" #include -#include +#include #include #include #include @@ -74,7 +74,7 @@ BT_HIDDEN void bt_attributes_destroy(struct bt_value *attr_obj) { BT_LOGD("Destroying attributes object: addr=%p", attr_obj); - bt_put(attr_obj); + bt_object_put_ref(attr_obj); } BT_HIDDEN @@ -272,7 +272,7 @@ int bt_attributes_set_field_value(struct bt_value *attr_obj, } end: - bt_put(attr_field_obj); + bt_object_put_ref(attr_field_obj); return ret; }