Function correction

Remowe free_alloc_all as it prevent tu Segmentation fault error