Zsh Mailing List Archive
Messages sorted by: Reverse Date, Date, Thread, Author

PATCH: makecomplistflags memory leak



CID 93.

Index: Src/Zle/compctl.c
===================================================================
RCS file: /cvsroot/zsh/zsh/Src/Zle/compctl.c,v
retrieving revision 1.37
diff -u -r1.37 compctl.c
--- Src/Zle/compctl.c	26 Sep 2008 09:11:30 -0000	1.37
+++ Src/Zle/compctl.c	11 Nov 2008 19:27:07 -0000
@@ -3773,6 +3773,7 @@
 	    }
 	    he = up_histent(he);
 	}
+	freepatprog(pprogc);
     }
     if ((t = cc->mask & (CC_ARRAYS | CC_INTVARS | CC_ENVVARS | CC_SCALARS |
 			 CC_READONLYS | CC_SPECIALS | CC_PARAMS)))



Messages sorted by: Reverse Date, Date, Thread, Author