Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
PATCH 05/17: compcore: Fix size argument to zfree
- X-seq: zsh-workers 34115
- From: Mikael Magnusson <mikachu@xxxxxxxxx>
- To: zsh-workers@xxxxxxx
- Subject: PATCH 05/17: compcore: Fix size argument to zfree
- Date: Tue, 6 Jan 2015 06:25:37 +0100
- Dkim-signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=from:to:subject:date:message-id:in-reply-to:references; bh=PTEd0S+UQG+3eVCGhp0uXc0/nBIy9Z2WNK6K2z366cs=; b=axxmfV8gZp1cIkqG26WmUZmORkSgMUbVc9KWNC1ZnXtY/lk2JTge+c0plmIxNgGpdV qfUgu2KCcKODTwNFmonQyz08/ocEpZD71qGPfltZF1QNpXtVIslEVGS0cTRhBUieBxrU RUN/zvaoaSGvFUH5p72wHWKWEMKx02sWi/PjwAHE3UvHDv0Z7PfetszU1GQfxPZfOUBl KRWbv3D1FFKvngALl4BwoZTL0Ctr+p5Dg6AT152CtVQ7Ab2CfewdirDjDTkm4Pwr+vca OmTLZWEwwz4gEniZue9+cyy/HZEudKTKfnU5ioHjgDYnqnTox1wmDRaF8osFWAwh1Sp6 DWKw==
- In-reply-to: <1420521949-30483-1-git-send-email-mikachu@gmail.com>
- List-help: <mailto:zsh-workers-help@zsh.org>
- List-id: Zsh Workers List <zsh-workers.zsh.org>
- List-post: <mailto:zsh-workers@zsh.org>
- Mailing-list: contact zsh-workers-help@xxxxxxx; run by ezmlm
- References: <1420521949-30483-1-git-send-email-mikachu@gmail.com>
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(-)
diff --git a/Src/Zle/compcore.c b/Src/Zle/compcore.c
index b0c6e06..f505605 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. */
--
2.2.0.GIT
Messages sorted by:
Reverse Date,
Date,
Thread,
Author