!45774 [MS][LITE] fix mem leak
Merge pull request !45774 from jianghui58/codex_fuzz_master
This commit is contained in:
commit
3f5b9c2eec
|
@ -181,6 +181,7 @@ char *ReadFile(const char *file, size_t *size) {
|
|||
if (goffset < 0) {
|
||||
MS_LOG(ERROR) << "read file range failed";
|
||||
ifs->close();
|
||||
delete ifs;
|
||||
return nullptr;
|
||||
}
|
||||
*size = static_cast<size_t>(goffset);
|
||||
|
|
Loading…
Reference in New Issue