1
0
Fork 0
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:
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

@ -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 */