Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
PATCH: avoid possible memory leak in vared
- X-seq: zsh-workers 25634
- From: Clint Adams <clint@xxxxxxx>
- To: zsh-workers@xxxxxxxxxx
- Subject: PATCH: avoid possible memory leak in vared
- Date: Mon, 8 Sep 2008 05:53:01 +0000
- Mail-followup-to: zsh-workers@xxxxxxxxxx
- Mailing-list: contact zsh-workers-help@xxxxxxxxxx; run by ezmlm
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