--- a/mem2swap.c +++ b/mem2swap.c @@ -78,6 +78,7 @@ switch (pid) { case 0: execve (CMD_FREE, args, NULL); + exit (EXIT_FAILURE); case -1: perror ("Fork Error"); return EXIT_FAILURE;