mirror of git://sourceware.org/git/glibc.git
hurd: Fix exec() leak on proc_task2proc failure
env is allocated after args, so should be freed before it.
This commit is contained in:
parent
1bd7a06a95
commit
84a9d5835a
|
@ -469,10 +469,10 @@ retry:
|
||||||
/* Got a signal while inside an RPC of the critical section, retry again */
|
/* Got a signal while inside an RPC of the critical section, retry again */
|
||||||
goto retry;
|
goto retry;
|
||||||
|
|
||||||
outargs:
|
|
||||||
free (args);
|
|
||||||
outenv:
|
outenv:
|
||||||
free (env);
|
free (env);
|
||||||
|
outargs:
|
||||||
|
free (args);
|
||||||
return err;
|
return err;
|
||||||
}
|
}
|
||||||
libc_hidden_def (_hurd_exec_paths)
|
libc_hidden_def (_hurd_exec_paths)
|
||||||
|
|
Loading…
Reference in New Issue