X-Git-Url: http://git.liburcu.org/?a=blobdiff_plain;f=src%2Fcommon.c;h=a09ad2c0c7f4c4e37b155fb2a126c7293d8d2562;hb=19cc9a75b815d2cce16b2d6c0c7ce5990512b18d;hp=214d105c25cd9c87019e2cc9dc2c122194b94bd9;hpb=d29713bcbb508d63afb4018300d111c70f6ba069;p=lttngtop.git diff --git a/src/common.c b/src/common.c index 214d105..a09ad2c 100644 --- a/src/common.c +++ b/src/common.c @@ -569,13 +569,6 @@ enum bt_cb_ret handle_statedump_process_state(struct bt_ctf_event *call_data, goto error; } - /* - * FIXME - * I first tried with bt_ctf_get_string but doesn`t work at all - * It couldn`t find the field _name because it is an integer in - * the metadata and not a string like _filename for the - * statedump_file_descriptor - */ scope = bt_ctf_get_top_level_scope(call_data, BT_EVENT_FIELDS); procname = bt_ctf_get_char_array(bt_ctf_get_field(call_data, @@ -594,14 +587,6 @@ enum bt_cb_ret handle_statedump_process_state(struct bt_ctf_event *call_data, proc->comm = strdup(procname); proc->pid = pid; - /* - * FIXME - * I would like to free procname because it is duplicated - * when the process is created but it segfaults... - * - * free(procname); - */ - return BT_CB_OK; error: