diff --git a/ChangeLog b/ChangeLog index 72922feb4..c8bc5e30f 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,7 @@ +2023-09-10 Bart Schaefer + + * 52125: Src/exec.c: getoutput() must not free() gettempname() + 2023-09-09 Bart Schaefer * unposted: Completion/Base/Utility/_shadow: quoting for safety diff --git a/Src/exec.c b/Src/exec.c index 8f9d5a885..3a8b3e951 100644 --- a/Src/exec.c +++ b/Src/exec.c @@ -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;