Fix potential null dereference issue, thanks @eyalgolan1337. Resolves #106.
This commit is contained in:
parent
2985cb1d6c
commit
d1199dc325
@ -455,7 +455,9 @@ namespace detail {
|
||||
}
|
||||
|
||||
inline void file_deleter(std::FILE* ptr) {
|
||||
fclose(ptr);
|
||||
if(ptr) {
|
||||
fclose(ptr);
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Loading…
Reference in New Issue
Block a user