about summary refs log tree commit diff
path: root/Src
diff options
context:
space:
mode:
authorOliver Kiddle <opk@users.sourceforge.net>2008-11-12 12:59:07 +0000
committerOliver Kiddle <opk@users.sourceforge.net>2008-11-12 12:59:07 +0000
commitdcd26714bb85b7559ae5342ae95cc30f9a98ce8c (patch)
tree6cecfc959c9fc0274b6a79954bcf65c13554f179 /Src
parent61e9152b112b22ee145d4775d7df7ed9a6ed8329 (diff)
downloadzsh-dcd26714bb85b7559ae5342ae95cc30f9a98ce8c.tar.gz
zsh-dcd26714bb85b7559ae5342ae95cc30f9a98ce8c.tar.xz
zsh-dcd26714bb85b7559ae5342ae95cc30f9a98ce8c.zip
26030: fix memory leak in vared
Diffstat (limited to 'Src')
-rw-r--r--Src/Zle/zle_main.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/Src/Zle/zle_main.c b/Src/Zle/zle_main.c
index 76bf44cbd..60972f5c5 100644
--- a/Src/Zle/zle_main.c
+++ b/Src/Zle/zle_main.c
@@ -1562,6 +1562,7 @@ bin_vared(char *name, char **args, Options ops, UNUSED(int func))
 	/* need to open /dev/tty specially */
 	if ((SHTTY = open("/dev/tty", O_RDWR|O_NOCTTY)) == -1) {
 	    zwarnnam(name, "can't access terminal");
+	    zsfree(s);
 	    return 1;
 	}
 	oshout = shout;