diff options
author | Peter Stephenson <pws@users.sourceforge.net> | 2004-07-12 10:05:46 +0000 |
---|---|---|
committer | Peter Stephenson <pws@users.sourceforge.net> | 2004-07-12 10:05:46 +0000 |
commit | aad11eb6188b0b42ddfa437defb36c741ddc722c (patch) | |
tree | dc68667502e5ac73d1988221f041476732bed6a4 /Src/Zle | |
parent | def0167e34a276bbcf6e1e63435dd77a79b12b18 (diff) | |
download | zsh-aad11eb6188b0b42ddfa437defb36c741ddc722c.tar.gz zsh-aad11eb6188b0b42ddfa437defb36c741ddc722c.tar.xz zsh-aad11eb6188b0b42ddfa437defb36c741ddc722c.zip |
unposted: improve 20150 by setting pointer to NULL
Diffstat (limited to 'Src/Zle')
-rw-r--r-- | Src/Zle/compresult.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/Src/Zle/compresult.c b/Src/Zle/compresult.c index 05f632d92..05b5f1a10 100644 --- a/Src/Zle/compresult.c +++ b/Src/Zle/compresult.c @@ -1770,7 +1770,10 @@ calclist(int showall) } else for (g = amatches; g; g = g->next) + { zfree(g->widths, 0); + g->widths = NULL; + } listdat.valid = 1; listdat.hidden = hidden; listdat.nlist = nlist; |