Skip to content

Commit

Permalink
Free memory in HeapFree
Browse files Browse the repository at this point in the history
  • Loading branch information
JayFoxRox committed Jun 12, 2019
1 parent 3afc669 commit 11644a9
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions main.c
Original file line number Diff line number Diff line change
Expand Up @@ -972,6 +972,11 @@ HACKY_IMPORT_BEGIN(HeapFree)
hacky_printf("hHeap 0x%" PRIX32 "\n", stack[1]);
hacky_printf("dwFlags 0x%" PRIX32 "\n", stack[2]);
hacky_printf("lpMem 0x%" PRIX32 "\n", stack[3]);

assert(stack[2] == 0x0);

Free(stack[3]);

eax = 1; // nonzero if succeeds
esp += 3 * 4;
HACKY_IMPORT_END()
Expand Down

0 comments on commit 11644a9

Please sign in to comment.