Added exit(0) for after execve fails and fixed memory leak in main.c