g_string_free(ctf_fs_trace->path, TRUE);
}
- if (ctf_fs_trace->name) {
- g_string_free(ctf_fs_trace->name, TRUE);
- }
-
if (ctf_fs_trace->metadata) {
ctf_fs_metadata_fini(ctf_fs_trace->metadata);
g_free(ctf_fs_trace->metadata);
goto error;
}
- ctf_fs_trace->name = g_string_new(name);
- if (!ctf_fs_trace->name) {
- goto error;
- }
-
ctf_fs_trace->metadata = g_new0(struct ctf_fs_metadata, 1);
if (!ctf_fs_trace->metadata) {
goto error;
struct ctf_fs_trace *winner;
guint i;
int ret = 0;
- char uuid_str[BT_UUID_STR_LEN + 1];
BT_ASSERT(num_traces >= 2);
traces[i] = NULL;
}
- /* Use the string representation of the UUID as the trace name. */
- bt_uuid_to_str(winner->metadata->tc->uuid, uuid_str);
- g_string_printf(winner->name, "%s", uuid_str);
-
end:
return ret;
}