Vanquish malloc error in location.c. Now Valgrind-friendly.