Fix memory leak (by deallocating the file buffer)
This commit is contained in:
parent
acbd08d5a6
commit
d93b1ba186
|
@ -894,6 +894,7 @@ bool DivEngine::loadTFMv2(unsigned char* file, size_t len) {
|
|||
} catch(InvalidHeaderException& e) {
|
||||
lastError="invalid info header!";
|
||||
}
|
||||
|
||||
|
||||
delete[] file;
|
||||
return success;
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue