Update myshell.c

had memory leak