Now freeing all allocated data inside  other than 's return char*.