shell.c memory leak eliminated from command mode, still present as a small (100byte) leak in interactive mode