parse: Fix small memory leak (#124)

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

View File

@ -2670,6 +2670,7 @@ bool GetDataDirectoryEntry(parsed_pe *pe,
}
raw_entry.assign(buf->buf, buf->buf + buf->bufLen);
deleteBuffer(buf);
} else {
section sec;
if (!getSecForVA(pe->internal->secs, addr, sec)) {