Fix: various fixes for ctf-traces/succeed test cases
[babeltrace.git] / plugins / ctf / fs-src / data-stream-file.c
index 51908e0a8dfb2c70fceff85920a81415f7ba496d..52954bd247d7677f0c52e52b1d46c3f180bfafef 100644 (file)
@@ -255,7 +255,7 @@ int get_ds_file_packet_bounds_clock_classes(struct ctf_fs_ds_file *ds_file,
                struct bt_ctf_clock_class **_timestamp_end_cc)
 {
        int ret;
-       struct bt_ctf_field *timestamp_field;
+       struct bt_ctf_field *timestamp_field = NULL;
        struct bt_ctf_field *packet_context_field = NULL;
        struct bt_ctf_clock_class *timestamp_begin_cc = NULL;
        struct bt_ctf_clock_class *timestamp_end_cc = NULL;
@@ -283,7 +283,7 @@ int get_ds_file_packet_bounds_clock_classes(struct ctf_fs_ds_file *ds_file,
                BT_LOGD("Cannot retrieve the clock mapped to timestamp_begin of stream \'%s\'",
                                ds_file->file->path->str);
        }
-       bt_put(timestamp_field);
+       BT_PUT(timestamp_field);
 
        timestamp_field = bt_ctf_field_structure_get_field_by_name(
                        packet_context_field, "timestamp_end");
This page took 0.023047 seconds and 4 git commands to generate.