From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 16453 invoked by alias); 6 Jan 2015 05:54:19 -0000 Mailing-List: contact zsh-workers-help@zsh.org; run by ezmlm Precedence: bulk X-No-Archive: yes List-Id: Zsh Workers List List-Post: List-Help: X-Seq: 34115 Received: (qmail 24714 invoked from network); 6 Jan 2015 05:54:18 -0000 X-Spam-Checker-Version: SpamAssassin 3.3.2 (2011-06-06) on f.primenet.com.au X-Spam-Level: X-Spam-Status: No, score=-2.7 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,FREEMAIL_FROM,RCVD_IN_DNSWL_LOW autolearn=ham version=3.3.2 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== X-Received: by 10.180.98.42 with SMTP id ef10mr32660655wib.46.1420521971360; Mon, 05 Jan 2015 21:26:11 -0800 (PST) From: Mikael Magnusson To: zsh-workers@zsh.org Subject: PATCH 05/17: compcore: Fix size argument to zfree Date: Tue, 6 Jan 2015 06:25:37 +0100 Message-Id: <1420521949-30483-6-git-send-email-mikachu@gmail.com> X-Mailer: git-send-email 2.2.0.GIT In-Reply-To: <1420521949-30483-1-git-send-email-mikachu@gmail.com> 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