about summary refs log tree commit diff
diff options
context:
space:
mode:
-rw-r--r--ChangeLog2
-rw-r--r--Src/Zle/compcore.c2
2 files changed, 3 insertions, 1 deletions
diff --git a/ChangeLog b/ChangeLog
index 384a85208..c31520b69 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,5 +1,7 @@
 2015-01-06  Mikael Magnusson  <mikachu@gmail.com>
 
+	* 34115: Src/Zle/compcore.c: Fix size argument to zfree
+
 	* 34117: Src/Zle/zle_utils.c: size_t is unsigned, use int instead
 
 	* 34116: Src/Zle/computil.c: Check for NULL before passing
diff --git a/Src/Zle/compcore.c b/Src/Zle/compcore.c
index b0c6e06f8..f5056058a 100644
--- a/Src/Zle/compcore.c
+++ b/Src/Zle/compcore.c
@@ -3492,7 +3492,7 @@ freematch(Cmatch m, int nbeg, int nend)
     if (m->brsl)
 	zfree(m->brsl, nend * sizeof(int));
 
-    zfree(m, sizeof(m));
+    zfree(m, sizeof(*m));
 }
 
 /* This frees the groups of matches. */