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 8208E1382AC for ; Mon, 20 Jun 2016 03:08:29 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id 9BBC01425C; Mon, 20 Jun 2016 03:08:26 +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 89533141C1 for ; Mon, 20 Jun 2016 03:08:25 +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 0EF38340836 for ; Mon, 20 Jun 2016 03:08:24 +0000 (UTC) Received: from localhost.localdomain (localhost [127.0.0.1]) by oystercatcher.gentoo.org (Postfix) with ESMTP id EBE6B241F for ; Mon, 20 Jun 2016 03:08:21 +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: <1466391569.75ab6c592861c877e8b9b477170b46c4e8922b2a.vapier@gentoo> Subject: [gentoo-commits] proj/pax-utils:master commit in: / X-VCS-Repository: proj/pax-utils X-VCS-Files: pspax.c X-VCS-Directories: / X-VCS-Committer: vapier X-VCS-Committer-Name: Mike Frysinger X-VCS-Revision: 75ab6c592861c877e8b9b477170b46c4e8922b2a X-VCS-Branch: master Date: Mon, 20 Jun 2016 03:08:21 +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: cad54f8b-7169-4572-94a0-5c0f96991a24 X-Archives-Hash: c8ee93ef0c5bfa64504b6265c8b878a8 commit: 75ab6c592861c877e8b9b477170b46c4e8922b2a Author: Mike Frysinger gentoo org> AuthorDate: Mon Jun 20 02:59:29 2016 +0000 Commit: Mike Frysinger gentoo org> CommitDate: Mon Jun 20 02:59:29 2016 +0000 URL: https://gitweb.gentoo.org/proj/pax-utils.git/commit/?id=75ab6c59 pspax: fix file leakage when reading the command line pspax.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/pspax.c b/pspax.c index 67b7678..c10688f 100644 --- a/pspax.c +++ b/pspax.c @@ -88,6 +88,8 @@ static char *get_proc_name_cmdline(int pfd) fclose(fp); return NULL; } + fclose(fp); + return (str); }