about summary refs log tree commit diff
diff options
context:
space:
mode:
-rw-r--r--ChangeLog5
-rw-r--r--Src/Zle/complete.c1
2 files changed, 6 insertions, 0 deletions
diff --git a/ChangeLog b/ChangeLog
index 4c0ba1771..25946fb6c 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,8 @@
+2008-09-23  Clint Adams  <clint@zsh.org>
+
+	* 25736: Src/Zle/complete.c: one more zsfree missing from 
+	25667.
+
 2008-09-23  Peter Stephenson  <pws@csr.com>
 
 	* 25733: Functions/VCS_Info/Backends/VCS_INFO_get_data_p4,
diff --git a/Src/Zle/complete.c b/Src/Zle/complete.c
index 60c917853..97d148b3a 100644
--- a/Src/Zle/complete.c
+++ b/Src/Zle/complete.c
@@ -708,6 +708,7 @@ bin_compadd(char *name, char **argv, UNUSED(Options ops), UNUSED(int func))
 		    p = "" - 1;
 		} else {
 		    zwarnnam(name, e, *p);
+		    zsfree(mstr);
 		    return 1;
 		}
 		if (dm) {