From c14d7e267a4c0709991afaa0b6a52c1a2808277a Mon Sep 17 00:00:00 2001 From: =?utf8?q?J=C3=A9r=C3=A9mie=20Galarneau?= Date: Mon, 24 Oct 2016 16:31:07 -0400 Subject: [PATCH] ctf-fs: missing component->streams NULL check MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit Signed-off-by: Jérémie Galarneau --- plugins/ctf/fs/fs.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/plugins/ctf/fs/fs.c b/plugins/ctf/fs/fs.c index 0c6f3d8d..419f601c 100644 --- a/plugins/ctf/fs/fs.c +++ b/plugins/ctf/fs/fs.c @@ -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); } -- 2.34.1