ctf-fs: missing component->streams NULL check
[babeltrace.git] / plugins / ctf / fs / fs.c
index 0c6f3d8d2671ba351ab5304a4c9295d5e19744a5..419f601c32cd6778805b79c81cf7fa53729df8c4 100644 (file)
@@ -161,7 +161,9 @@ void ctf_fs_destroy_data(struct ctf_fs_component *component)
 
        ctf_fs_metadata_fini(&component->metadata);
        BT_PUT(component->current_notification);
-       g_ptr_array_free(component->streams, TRUE);
+       if (component->streams) {
+               g_ptr_array_free(component->streams, TRUE);
+       }
        g_free(component);
 }
 
This page took 0.0238 seconds and 4 git commands to generate.