diff --git a/src/plugins/ctf/fs-src/query.c b/src/plugins/ctf/fs-src/query.c index 33d9169c5..cabb3683d 100644 --- a/src/plugins/ctf/fs-src/query.c +++ b/src/plugins/ctf/fs-src/query.c @@ -171,7 +171,11 @@ bt_component_class_query_method_status metadata_info_query( ctf_metadata_decoder_destroy(decoder); if (metadata_fp) { - fclose(metadata_fp); + ret = fclose(metadata_fp); + if (ret) { + BT_LOGE_ERRNO("Cannot close metatada file stream", + ": path=\"%s\"", path); + } } *user_result = result;