From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from lists.gentoo.org (pigeon.gentoo.org [208.92.234.80]) by finch.gentoo.org (Postfix) with ESMTP id 27025138CBF for ; Sun, 3 May 2015 15:17:28 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id 357E1E0871; Sun, 3 May 2015 15:17:26 +0000 (UTC) Received: from smtp.gentoo.org (smtp.gentoo.org [140.211.166.183]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by pigeon.gentoo.org (Postfix) with ESMTPS id CF60CE0871 for ; Sun, 3 May 2015 15:17:25 +0000 (UTC) Received: from oystercatcher.gentoo.org (oystercatcher.gentoo.org [148.251.78.52]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by smtp.gentoo.org (Postfix) with ESMTPS id C85EB340688 for ; Sun, 3 May 2015 15:17:24 +0000 (UTC) Received: by oystercatcher.gentoo.org (Postfix, from userid 2137) id CD8519CC; Sun, 3 May 2015 15:17:14 +0000 (UTC) From: "Alon Bar-Lev (alonbl)" To: gentoo-commits@lists.gentoo.org Reply-To: gentoo-dev@lists.gentoo.org, alonbl@gentoo.org Subject: [gentoo-commits] gentoo-x86 commit in app-crypt/pinentry/files: pinentry-0.9.1-memleak.patch X-VCS-Repository: gentoo-x86 X-VCS-Files: pinentry-0.9.1-memleak.patch X-VCS-Directories: app-crypt/pinentry/files X-VCS-Committer: alonbl X-VCS-Committer-Name: Alon Bar-Lev Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit Message-Id: <20150503151716.CD8519CC@oystercatcher.gentoo.org> Date: Sun, 3 May 2015 15:17:14 +0000 (UTC) Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-Id: Gentoo Linux mail X-BeenThere: gentoo-commits@lists.gentoo.org X-Archives-Salt: f1ccf0c7-052a-4e7c-9af3-df583fb8ed62 X-Archives-Hash: 2aa1c7e704d0b2d3eed66a9640142621 alonbl 15/05/03 15:17:14 Added: pinentry-0.9.1-memleak.patch Log: Version bump, bug#548456 (Portage version: 2.2.18/cvs/Linux x86_64, signed Manifest commit with key BF20DC51) Revision Changes Path 1.1 app-crypt/pinentry/files/pinentry-0.9.1-memleak.patch file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/app-crypt/pinentry/files/pinentry-0.9.1-memleak.patch?rev=1.1&view=markup plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/app-crypt/pinentry/files/pinentry-0.9.1-memleak.patch?rev=1.1&content-type=text/plain Index: pinentry-0.9.1-memleak.patch =================================================================== >From 03e4207f11e228a4c079af991f82507539793bae Mon Sep 17 00:00:00 2001 From: Daniel Kahn Gillmor Date: Tue, 28 Apr 2015 13:01:16 -0400 Subject: [PATCH] fix small memory leak in pinentry-curses * pinentry/pinentry-curses.c: free internally allocated local string. --- pinentry/pinentry-curses.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/pinentry/pinentry-curses.c b/pinentry/pinentry-curses.c index 4b7080e..043f8a9 100644 --- a/pinentry/pinentry-curses.c +++ b/pinentry/pinentry-curses.c @@ -199,6 +199,8 @@ utf8_to_local (char *lc_ctype, char *string) memset (&ps, 0, sizeof(mbstate_t)); mbsrtowcs (wcs, &p, len, &ps); + free (local); + leave: if (old_ctype) { -- 2.1.4