Changeset 77185 in vbox for trunk/src/VBox/Runtime/common/ldr
- Timestamp:
- Feb 6, 2019 7:46:49 PM (6 years ago)
- Location:
- trunk/src/VBox/Runtime/common/ldr
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Runtime/common/ldr/ldrELFRelocatable.cpp.h
r76553 r77185 677 677 } 678 678 679 pModElf->pvBits = NULL; 679 if (pModElf->pvBits) 680 { 681 pModElf->Core.pReader->pfnUnmap(pModElf->Core.pReader, pModElf->pvBits); 682 pModElf->pvBits = NULL; 683 } 680 684 681 685 return VINF_SUCCESS; -
trunk/src/VBox/Runtime/common/ldr/ldrFile.cpp
r76553 r77185 186 186 int rc = VINF_SUCCESS; 187 187 PRTLDRREADERFILE pFileReader = (PRTLDRREADERFILE)pReader; 188 189 Assert(!pFileReader->cMappings); 190 188 191 if (pFileReader->hFile != NIL_RTFILE) 189 192 { … … 192 195 pFileReader->hFile = NIL_RTFILE; 193 196 } 197 198 if (pFileReader->pvMapping) 199 { 200 RTMemFree(pFileReader->pvMapping); 201 pFileReader->pvMapping = NULL; 202 } 203 194 204 RTMemFree(pFileReader); 195 205 return rc;
Note:
See TracChangeset
for help on using the changeset viewer.