diff options
author | Clint Adams <clint@users.sourceforge.net> | 2008-09-14 07:34:46 +0000 |
---|---|---|
committer | Clint Adams <clint@users.sourceforge.net> | 2008-09-14 07:34:46 +0000 |
commit | 430a7535fa73917418713fb714840fc2ae0c3e4c (patch) | |
tree | 5e1aedb719fd482a314aa27dc66360744822b559 /Src | |
parent | b8a36eea87836c8156e4d3d587cb57252e02c7a2 (diff) | |
download | zsh-430a7535fa73917418713fb714840fc2ae0c3e4c.tar.gz zsh-430a7535fa73917418713fb714840fc2ae0c3e4c.tar.xz zsh-430a7535fa73917418713fb714840fc2ae0c3e4c.zip |
25666: free memory allocated for an xor if the argument number is invalid.
Diffstat (limited to 'Src')
-rw-r--r-- | Src/Zle/computil.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/Src/Zle/computil.c b/Src/Zle/computil.c index 2b3efa776..9af32c1fe 100644 --- a/Src/Zle/computil.c +++ b/Src/Zle/computil.c @@ -1549,6 +1549,8 @@ parse_cadef(char *nam, char **args) if (*p != ':') { freecadef(all); zwarnnam(nam, "invalid argument: %s", *args); + if (xor) + free(xor); return NULL; } if (*++p == ':') { |