1
0
Fork 0
mirror of git://git.code.sf.net/p/zsh/code synced 2025-09-07 11:41:16 +02:00

26030: fix memory leak in vared

This commit is contained in:
Oliver Kiddle 2008-11-12 12:59:07 +00:00
parent 61e9152b11
commit dcd26714bb
2 changed files with 3 additions and 0 deletions

View file

@ -1,5 +1,7 @@
2008-11-12 Oliver Kiddle <opk@zsh.org>
* 26030: Src/Zle/zle_main.c: fix memory leak in vared
* 26028: Src/builtin.c: close temporary file when aborting fc
2008-11-12 Peter Stephenson <pws@csr.com>

View file

@ -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;