Changeset 21760 for branches/gcc-kmk/tools/common/kFilePE.cpp
- Timestamp:
- Oct 29, 2011, 4:43:41 PM (14 years ago)
- File:
-
- 1 edited
-
branches/gcc-kmk/tools/common/kFilePE.cpp (modified) (4 diffs)
Legend:
- Unmodified
- Added
- Removed
-
branches/gcc-kmk/tools/common/kFilePE.cpp
r21759 r21760 11 11 ******************************************************************************/ 12 12 #include <string.h> 13 #include <malloc.h> 13 14 14 15 #include "MZexe.h" … … 76 77 77 78 /* create mapping */ 78 pvBase = new char [pehdr.OptionalHeader.SizeOfImage];79 pvBase = malloc(pehdr.OptionalHeader.SizeOfImage); 79 80 if (pvBase == NULL) 80 81 throw(kError(kError::NOT_ENOUGH_MEMORY)); … … 139 140 catch (kError err) 140 141 { 141 delete(pvBase);142 free(pvBase); 142 143 pvBase = NULL; 143 144 throw(err); … … 152 153 { 153 154 if (pvBase) 154 delete(pvBase);155 free(pvBase); 155 156 } 156 157
Note:
See TracChangeset
for help on using the changeset viewer.
