about summary refs log tree commit diff
path: root/Src/Zle
diff options
context:
space:
mode:
Diffstat (limited to 'Src/Zle')
-rw-r--r--Src/Zle/compresult.c3
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;