about summary refs log tree commit diff
path: root/Src
diff options
context:
space:
mode:
authorMikael Magnusson <mikachu@gmail.com>2015-01-05 13:55:11 +0100
committerMikael Magnusson <mikachu@gmail.com>2015-01-06 23:46:18 +0100
commit221ecf5010b46afc93a2eec3c132fb8656716247 (patch)
treed0176624267c7ff31bbfc1953076cae0d73afd84 /Src
parent18b60d85126ff29aa2bced1d213452a103a313e6 (diff)
downloadzsh-221ecf5010b46afc93a2eec3c132fb8656716247.tar.gz
zsh-221ecf5010b46afc93a2eec3c132fb8656716247.tar.xz
zsh-221ecf5010b46afc93a2eec3c132fb8656716247.zip
34115: compcore: Fix size argument to zfree
Found by Coverity (Issue 1255852), has no impact unless using
--enable-zsh-mem, and even then it is minimal.
Diffstat (limited to 'Src')
-rw-r--r--Src/Zle/compcore.c2
1 files changed, 1 insertions, 1 deletions
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. */