From 96ce0abf6b7607ca2df64759c495d153132d07bd Mon Sep 17 00:00:00 2001 From: Bart Schaefer Date: Sun, 10 Sep 2023 21:00:23 -0700 Subject: 52125: getoutput() must not free() after gettempname(..., 1) for heap --- Src/exec.c | 1 - 1 file changed, 1 deletion(-) (limited to 'Src/exec.c') 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; -- cgit 1.4.1