goto error_destroy;
}
+ bt_object_set_parent(writer->trace, writer);
+ bt_put(writer->trace);
/* Create trace directory if necessary and open a metadata file */
if (g_mkdir_with_parents(path, S_IRWXU | S_IRWXG)) {
perror("g_mkdir_with_parents");
}
}
- bt_put(writer->trace);
+ bt_object_release(writer->trace);
g_free(writer);
}