Revert "Fixed memory freeing in heap_1.c"

This reverts commit b93256081bfac7d5d1a0515617cfd2eed3942389.
Added heap_4.c to fix mem. err