Fixing leaks with child process

Fixed the leaks when calling child processes in parallel mode
Problem remains when execv fail and child process exit without freeing