Fix potential null dereference issue, thanks @eyalgolan1337. Resolves #106.

This commit is contained in:
Jeremy 2024-03-20 22:08:21 -05:00
parent 2985cb1d6c
commit d1199dc325
No known key found for this signature in database
GPG Key ID: 19AA8270105E8EB4

View File

@ -455,7 +455,9 @@ namespace detail {
}
inline void file_deleter(std::FILE* ptr) {
fclose(ptr);
if(ptr) {
fclose(ptr);
}
}
}
}