Fix: add missing NULL check in ctf_fs_destroy_data
authorJérémie Galarneau <jeremie.galarneau@efficios.com>
Mon, 30 Jan 2017 22:24:29 +0000 (17:24 -0500)
committerJérémie Galarneau <jeremie.galarneau@efficios.com>
Sun, 28 May 2017 16:57:37 +0000 (12:57 -0400)
Signed-off-by: Jérémie Galarneau <jeremie.galarneau@efficios.com>
plugins/ctf/fs/fs.c

index 61cac172fd2c4efce1c67f5008ea9bd87f84721b..321a45a5eac9bb8dd97616fdb4bc080a00bb8220 100644 (file)
@@ -638,6 +638,9 @@ error:
 static
 void ctf_fs_destroy_data(struct ctf_fs_component *ctf_fs)
 {
+       if (!ctf_fs) {
+               return;
+       }
        if (ctf_fs->trace_path) {
                g_string_free(ctf_fs->trace_path, TRUE);
        }
This page took 0.026952 seconds and 4 git commands to generate.