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

PATCH: avoid possible memory leak in vared



Index: Src/Zle/zle_main.c
===================================================================
RCS file: /cvsroot/zsh/zsh/Src/Zle/zle_main.c,v
retrieving revision 1.114
diff -u -r1.114 zle_main.c
--- Src/Zle/zle_main.c	31 Jul 2008 08:44:21 -0000	1.114
+++ Src/Zle/zle_main.c	8 Sep 2008 05:50:16 -0000
@@ -1595,6 +1595,8 @@
 	/* error in editing */
 	errflag = 0;
 	breaks = obreaks;
+	if (t)
+	    zsfree(t);
 	return 1;
     }
     /* strip off trailing newline, if any */



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