projects
/
babeltrace.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
ctf-fs: missing component->streams NULL check
[babeltrace.git]
/
plugins
/
ctf
/
fs
/
fs.c
diff --git
a/plugins/ctf/fs/fs.c
b/plugins/ctf/fs/fs.c
index 0c6f3d8d2671ba351ab5304a4c9295d5e19744a5..419f601c32cd6778805b79c81cf7fa53729df8c4 100644
(file)
--- 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);
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);
}
g_free(component);
}
This page took
0.02795 seconds
and
4
git commands to generate.