From 86ae90bc1c2866b1b10a326d4cdbdb8b02a9f9a9 Mon Sep 17 00:00:00 2001 From: Peter Stephenson Date: Sun, 11 Jul 2004 22:53:01 +0000 Subject: 20149: improve prompt-reset code 20150: commit ancient memory leak fix(?) in completion --- 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 83de2bd28..05f632d92 100644 --- a/Src/Zle/compresult.c +++ b/Src/Zle/compresult.c @@ -1768,6 +1768,9 @@ calclist(int showall) g->width += (max - (g->width * g->cols - CM_SPACE)) / g->cols; } } + else + for (g = amatches; g; g = g->next) + zfree(g->widths, 0); listdat.valid = 1; listdat.hidden = hidden; listdat.nlist = nlist; -- cgit 1.4.1