mirror of
https://github.com/QuasarApp/pe-parse.git
synced 2025-05-04 07:59:33 +00:00
parse: Fix small memory leak (#124)
This commit is contained in:
parent
2bf8ad917e
commit
164666cb5b
@ -2670,6 +2670,7 @@ bool GetDataDirectoryEntry(parsed_pe *pe,
|
|||||||
}
|
}
|
||||||
|
|
||||||
raw_entry.assign(buf->buf, buf->buf + buf->bufLen);
|
raw_entry.assign(buf->buf, buf->buf + buf->bufLen);
|
||||||
|
deleteBuffer(buf);
|
||||||
} else {
|
} else {
|
||||||
section sec;
|
section sec;
|
||||||
if (!getSecForVA(pe->internal->secs, addr, sec)) {
|
if (!getSecForVA(pe->internal->secs, addr, sec)) {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user