Gary Thompson

de-allocation of heap memory

Discussion created by Gary Thompson on Apr 26, 2013

I am using a MCF51JE128 with CW v.6.3. I have increased my heap memory to 0x2000 to fit my needs however after I free the allocated memory the alloc.c library will not re-use the previous memory...


This results in my task functioning out of power up only and failing to allocate any heap memory the second, third, etc. time around.

I have tried setting the _EWL_USE_FIX_MALLOC_POOLS to 0 in alloc.c with no well as decreasing the heap memory to the default size nothing seems to free up the allocated memory.

Any ideas?