1
0
Fork 0
mirror of git://git.code.sf.net/p/zsh/code synced 2025-09-08 12:01:21 +02:00

25634: free t before returning if both t and errflag are set.

This commit is contained in:
Clint Adams 2008-09-08 06:24:16 +00:00
parent 07462f8303
commit c715630baa
2 changed files with 7 additions and 0 deletions

View file

@ -1,3 +1,8 @@
2008-09-08 Clint Adams <clint@zsh.org>
* 25634: Src/Zle/zle_main.c: free t before returning if both t and
errflag are set.
2008-09-07 Clint Adams <clint@zsh.org>
* Frank Terbeck: 25624: Completion/Unix/Command/_git: clean up git

View file

@ -1595,6 +1595,8 @@ bin_vared(char *name, char **args, Options ops, UNUSED(int func))
/* error in editing */
errflag = 0;
breaks = obreaks;
if (t)
zsfree(t);
return 1;
}
/* strip off trailing newline, if any */