mirror of
git://git.code.sf.net/p/zsh/code
synced 2025-06-17 09:08:04 +02:00
52125: getoutput() must not free() after gettempname(..., 1) for heap
This commit is contained in:
parent
d95197a2ec
commit
96ce0abf6b
2 changed files with 4 additions and 1 deletions
|
@ -1,3 +1,7 @@
|
|||
2023-09-10 Bart Schaefer <schaefer@zsh.org>
|
||||
|
||||
* 52125: Src/exec.c: getoutput() must not free() gettempname()
|
||||
|
||||
2023-09-09 Bart Schaefer <schaefer@zsh.org>
|
||||
|
||||
* unposted: Completion/Base/Utility/_shadow: quoting for safety
|
||||
|
|
|
@ -4897,7 +4897,6 @@ getoutputfile(char *cmd, char **eptr)
|
|||
|
||||
if ((fd = open(nam, O_WRONLY | O_CREAT | O_EXCL | O_NOCTTY, 0600)) < 0) {
|
||||
zerr("process substitution failed: %e", errno);
|
||||
free(nam);
|
||||
if (!s)
|
||||
child_unblock();
|
||||
return NULL;
|
||||
|
|
Loading…
Reference in a new issue