mirror of
git://git.code.sf.net/p/zsh/code
synced 2025-10-23 16:40:24 +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
|
@ -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 */
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue