Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
PATCH 13/17: anon funcs: don't leak shf when ctrl-c in () {:} =(sleep 1)
- X-seq: zsh-workers 34110
- From: Mikael Magnusson <mikachu@xxxxxxxxx>
- To: zsh-workers@xxxxxxx
- Subject: PATCH 13/17: anon funcs: don't leak shf when ctrl-c in () {:} =(sleep 1)
- Date: Tue, 6 Jan 2015 06:25:45 +0100
- Dkim-signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=from:to:subject:date:message-id:in-reply-to:references; bh=jvwDIYBOluRHlK2DzWK15fjfHsGmsAgXEYEcYow8aH0=; b=zO/gcVEMa/A1k/SzAfrm0ELKZ6vHEyHo0Snrqofjyp+e1KicevJUOkkkXYohKmhMiS 6wtKosGC4Twy7pUXQK+PeeG8dtaYj/cAJvHqxhvEbXs7YhNXd9PJ+yHOFyiUksr2D4Yb IVYcrS92iHiAb/0IhyCZrgIiqSclxX4JR+1ORqRd8eAdRKVIVXHiDzeSEJ6GcmabTHX9 wxGdBQOc2STvIUah3VXTStQKhcfKxkTsVBqB9uuPgqK2+TOzLedwN0OKqBZHdLSm3nO6 a185xJl7Qw7oJevkQ6Fg7ZUhCMynqHJLfAMmliMQgKelSKVwHN5dAZVojpL5kHT1ziwc /BZg==
- In-reply-to: <1420521949-30483-1-git-send-email-mikachu@gmail.com>
- List-help: <mailto:zsh-workers-help@zsh.org>
- List-id: Zsh Workers List <zsh-workers.zsh.org>
- List-post: <mailto:zsh-workers@zsh.org>
- Mailing-list: contact zsh-workers-help@xxxxxxx; run by ezmlm
- References: <1420521949-30483-1-git-send-email-mikachu@gmail.com>
Found by Coverity (Issue 439076).
---
Src/exec.c | 2 ++
1 file changed, 2 insertions(+)
diff --git a/Src/exec.c b/Src/exec.c
index 6b93008..207e8c1 100644
--- a/Src/exec.c
+++ b/Src/exec.c
@@ -4461,6 +4461,8 @@ execfuncdef(Estate state, Eprog redir_prog)
if (htok && args) {
execsubst(args);
if (errflag) {
+ zsfree(shf->filename);
+ zfree(shf, sizeof(*shf));
state->pc = end;
return 1;
}
--
2.2.0.GIT
Messages sorted by:
Reverse Date,
Date,
Thread,
Author