flat assembler
Message board for the users of flat assembler.
Index
> Windows > is that correct? |
Author |
|
LocoDelAssembly 13 Jan 2008, 19:09
No it is not, you are freeing "MEM" address which was never allocated by malloc but by program loader. Since you store the address returned by malloc at [wsadata], you should do "push [wsadata]/call [free]" instead.
|
|||
13 Jan 2008, 19:09 |
|
zxcv 13 Jan 2008, 21:00
yes, ur right. i always used stack for it, but sometimes it went too complicated and i had to write from beggining
8 bytes in almost empty section isnt much. |
|||
13 Jan 2008, 21:00 |
|
f0dder 13 Jan 2008, 21:35
Why do you use hardcoded magic values instead of sizeof?
|
|||
13 Jan 2008, 21:35 |
|
< Last Thread | Next Thread > |
Forum Rules:
|
Copyright © 1999-2025, Tomasz Grysztar. Also on GitHub, YouTube.
Website powered by rwasa.