* PATCH: avoid possible memory leak in vared
@ 2008-09-08 5:53 Clint Adams
0 siblings, 0 replies; only message in thread
From: Clint Adams @ 2008-09-08 5:53 UTC (permalink / raw)
To: zsh-workers
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 */
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2008-09-08 6:12 UTC | newest]
Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2008-09-08 5:53 PATCH: avoid possible memory leak in vared Clint Adams
Code repositories for project(s) associated with this public inbox
https://git.vuxu.org/mirror/zsh/
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).