heap_init problem

How to reinitialise the heap ?

After calling heap_init(0)  the heap_space_unused(0) return well the memory size (127M in my case)

But malloc works no anymore ...

Regards

Eugene