X-Git-Url: http://git.efficios.com/?p=babeltrace.git;a=blobdiff_plain;f=lib%2Fctf-writer%2Fattributes.c;h=ddec5c851dddb63555afde2ff69e86c5a429887a;hp=bc421ace735bd3905ceeaa94e9037a9770c671af;hb=65300d60e4b4f167e5fc8f584677757ce09a3844;hpb=07208d85d16704b304b371897bb7acc995fcc481 diff --git a/lib/ctf-writer/attributes.c b/lib/ctf-writer/attributes.c index bc421ace..ddec5c85 100644 --- a/lib/ctf-writer/attributes.c +++ b/lib/ctf-writer/attributes.c @@ -31,7 +31,7 @@ #include #include #include -#include +#include #include #include #include @@ -74,7 +74,7 @@ BT_HIDDEN void bt_ctf_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_ctf_attributes_set_field_value(struct bt_value *attr_obj, } end: - bt_put(attr_field_obj); + bt_object_put_ref(attr_field_obj); return ret; }