mirror of
git://sourceware.org/git/glibc.git
synced 2024-11-21 01:12:26 +08:00
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 */
|
||||
goto retry;
|
||||
|
||||
outargs:
|
||||
free (args);
|
||||
outenv:
|
||||
free (env);
|
||||
outargs:
|
||||
free (args);
|
||||
return err;
|
||||
}
|
||||
libc_hidden_def (_hurd_exec_paths)
|
||||
|
Loading…
Reference in New Issue
Block a user