From: Jérémie Galarneau Date: Mon, 30 Jan 2017 22:24:29 +0000 (-0500) Subject: Fix: add missing NULL check in ctf_fs_destroy_data X-Git-Tag: v2.0.0-pre1~532 X-Git-Url: http://git.efficios.com/?p=babeltrace.git;a=commitdiff_plain;h=fa5a772da536f62f100a6cb4c3f29f9beeaebbcf Fix: add missing NULL check in ctf_fs_destroy_data Signed-off-by: Jérémie Galarneau --- diff --git a/plugins/ctf/fs/fs.c b/plugins/ctf/fs/fs.c index 61cac172..321a45a5 100644 --- a/plugins/ctf/fs/fs.c +++ b/plugins/ctf/fs/fs.c @@ -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); }