diff --git a/src/utils/utils.hpp b/src/utils/utils.hpp index c61db30..fdef76c 100644 --- a/src/utils/utils.hpp +++ b/src/utils/utils.hpp @@ -455,7 +455,9 @@ namespace detail { } inline void file_deleter(std::FILE* ptr) { - fclose(ptr); + if(ptr) { + fclose(ptr); + } } } }