shell.c valgrind error in malloc() call fixed