From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from lists.gentoo.org (pigeon.gentoo.org [208.92.234.80]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by finch.gentoo.org (Postfix) with ESMTPS id C4ED2139085 for ; Thu, 29 Dec 2016 02:26:12 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id 4216DE0C14; Thu, 29 Dec 2016 02:26:12 +0000 (UTC) Received: from smtp.gentoo.org (smtp.gentoo.org [140.211.166.183]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by pigeon.gentoo.org (Postfix) with ESMTPS id 21876E0C13 for ; Thu, 29 Dec 2016 02:26:02 +0000 (UTC) Received: from oystercatcher.gentoo.org (unknown [IPv6:2a01:4f8:202:4333:225:90ff:fed9:fc84]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.gentoo.org (Postfix) with ESMTPS id C122934164B for ; Thu, 29 Dec 2016 02:25:55 +0000 (UTC) Received: from localhost.localdomain (localhost [127.0.0.1]) by oystercatcher.gentoo.org (Postfix) with ESMTP id 5B15924F7 for ; Thu, 29 Dec 2016 02:25:52 +0000 (UTC) From: "Mike Frysinger" To: gentoo-commits@lists.gentoo.org Content-Transfer-Encoding: 8bit Content-type: text/plain; charset=UTF-8 Reply-To: gentoo-dev@lists.gentoo.org, "Mike Frysinger" Message-ID: <1482977722.b9978cef4d2844c2b7ee3cdaf90477259aa758fe.vapier@gentoo> Subject: [gentoo-commits] proj/portage-utils:master commit in: / X-VCS-Repository: proj/portage-utils X-VCS-Files: qpkg.c X-VCS-Directories: / X-VCS-Committer: vapier X-VCS-Committer-Name: Mike Frysinger X-VCS-Revision: b9978cef4d2844c2b7ee3cdaf90477259aa758fe X-VCS-Branch: master Date: Thu, 29 Dec 2016 02:25:52 +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: 9dcd2757-5f80-46c6-b591-f69597c35814 X-Archives-Hash: 5dde9343df98c8c5b8d52f3f658af738 commit: b9978cef4d2844c2b7ee3cdaf90477259aa758fe Author: Mike Frysinger gentoo org> AuthorDate: Thu Dec 29 02:15:22 2016 +0000 Commit: Mike Frysinger gentoo org> CommitDate: Thu Dec 29 02:15:22 2016 +0000 URL: https://gitweb.gentoo.org/proj/portage-utils.git/commit/?id=b9978cef qpkg: fix leakage when using -P multiple times qpkg.c | 1 + 1 file changed, 1 insertion(+) diff --git a/qpkg.c b/qpkg.c index c54d735..498299a 100644 --- a/qpkg.c +++ b/qpkg.c @@ -324,6 +324,7 @@ int qpkg_main(int argc, char **argv) case 'p': pretend = 1; break; case 'P': restrict_chmod = 1; + free(qpkg_bindir); qpkg_bindir = xstrdup(optarg); if (access(qpkg_bindir, W_OK) != 0) errp("%s", qpkg_bindir);