4
0
mirror of https://github.com/QuasarApp/pe-parse.git synced 2025-05-04 07:59:33 +00:00

parse: Fix small memory leak ()

This commit is contained in:
William Woodruff 2020-04-04 23:36:28 -04:00 committed by GitHub
parent 2bf8ad917e
commit 164666cb5b
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -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)) {