mirror of
git://git.code.sf.net/p/zsh/code
synced 2025-09-16 14:41:02 +02:00
26030: fix memory leak in vared
This commit is contained in:
parent
61e9152b11
commit
dcd26714bb
2 changed files with 3 additions and 0 deletions
|
@ -1,5 +1,7 @@
|
||||||
2008-11-12 Oliver Kiddle <opk@zsh.org>
|
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
|
* 26028: Src/builtin.c: close temporary file when aborting fc
|
||||||
|
|
||||||
2008-11-12 Peter Stephenson <pws@csr.com>
|
2008-11-12 Peter Stephenson <pws@csr.com>
|
||||||
|
|
|
@ -1562,6 +1562,7 @@ bin_vared(char *name, char **args, Options ops, UNUSED(int func))
|
||||||
/* need to open /dev/tty specially */
|
/* need to open /dev/tty specially */
|
||||||
if ((SHTTY = open("/dev/tty", O_RDWR|O_NOCTTY)) == -1) {
|
if ((SHTTY = open("/dev/tty", O_RDWR|O_NOCTTY)) == -1) {
|
||||||
zwarnnam(name, "can't access terminal");
|
zwarnnam(name, "can't access terminal");
|
||||||
|
zsfree(s);
|
||||||
return 1;
|
return 1;
|
||||||
}
|
}
|
||||||
oshout = shout;
|
oshout = shout;
|
||||||
|
|
Loading…
Reference in a new issue