[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [MiNT] Freeing child's base page



Miro Kropacek wrote:
Now, easy answer would be "freeing child's basepage invalidates also its
data" but I doubt this makes any sense.

Humm... For me it's normal.

If I'm not wrong, for one process there are 2 Malloc() blocks:
- The process environment block
- The TPA block: basepage+text+data+bss+stack

So if you call Mfree() with the pointer to the basepage, you actually free the whole TPA block, so the data becomes invalid.

Am I wrong ?

--
Vincent Rivière