migrate to MemBuffer class from New() to remove leak

This commit is contained in:
Liam Murphy
2020-11-26 00:14:00 +00:00
committed by Markus F.X.J. Oberhumer
parent 2a135e245b
commit cbe129795e
2 changed files with 26 additions and 16 deletions
+3
View File
@@ -29,6 +29,8 @@
#ifndef __UPX_PEFILE_H
#define __UPX_PEFILE_H 1
#include "mem.h"
/*************************************************************************
// general/pe handling
@@ -348,6 +350,7 @@ protected:
struct upx_rbranch;
struct upx_rleaf;
MemBuffer mem;
const upx_byte *start;
upx_byte *newstart;
upx_rnode *root;