hurd: Fix exec() leak on proc_task2proc failure

env is allocated after args, so should be freed before it.
This commit is contained in:
Samuel Thibault 2022-01-15 21:58:39 +01:00
parent 1bd7a06a95
commit 84a9d5835a

View File

@ -469,10 +469,10 @@ retry:
/* Got a signal while inside an RPC of the critical section, retry again */
goto retry;
outargs:
free (args);
outenv:
free (env);
outargs:
free (args);
return err;
}
libc_hidden_def (_hurd_exec_paths)