mirror of
git://git.code.sf.net/p/zsh/code
synced 2025-09-10 12:40:58 +02:00
25634: free t before returning if both t and errflag are set.
This commit is contained in:
parent
07462f8303
commit
c715630baa
2 changed files with 7 additions and 0 deletions
|
@ -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>
|
2008-09-07 Clint Adams <clint@zsh.org>
|
||||||
|
|
||||||
* Frank Terbeck: 25624: Completion/Unix/Command/_git: clean up git
|
* Frank Terbeck: 25624: Completion/Unix/Command/_git: clean up git
|
||||||
|
|
|
@ -1595,6 +1595,8 @@ bin_vared(char *name, char **args, Options ops, UNUSED(int func))
|
||||||
/* error in editing */
|
/* error in editing */
|
||||||
errflag = 0;
|
errflag = 0;
|
||||||
breaks = obreaks;
|
breaks = obreaks;
|
||||||
|
if (t)
|
||||||
|
zsfree(t);
|
||||||
return 1;
|
return 1;
|
||||||
}
|
}
|
||||||
/* strip off trailing newline, if any */
|
/* strip off trailing newline, if any */
|
||||||
|
|
Loading…
Reference in a new issue