ctf-fs: missing component->streams NULL check
authorJérémie Galarneau <jeremie.galarneau@efficios.com>
Mon, 24 Oct 2016 20:31:07 +0000 (16:31 -0400)
committerJérémie Galarneau <jeremie.galarneau@efficios.com>
Sat, 27 May 2017 18:09:06 +0000 (14:09 -0400)
Signed-off-by: Jérémie Galarneau <jeremie.galarneau@efficios.com>
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.025402 seconds and 4 git commands to generate.