From aad11eb6188b0b42ddfa437defb36c741ddc722c Mon Sep 17 00:00:00 2001 From: Peter Stephenson Date: Mon, 12 Jul 2004 10:05:46 +0000 Subject: unposted: improve 20150 by setting pointer to NULL --- Src/Zle/compresult.c | 3 +++ 1 file changed, 3 insertions(+) (limited to 'Src/Zle/compresult.c') 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; -- cgit v1.2.3