From 221ecf5010b46afc93a2eec3c132fb8656716247 Mon Sep 17 00:00:00 2001 From: Mikael Magnusson Date: Mon, 5 Jan 2015 13:55:11 +0100 Subject: 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. --- Src/Zle/compcore.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'Src') 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. */ -- cgit 1.4.1