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 0F0461395E2 for ; Sun, 27 Nov 2016 01:52:42 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id 5FF7FE09FF; Sun, 27 Nov 2016 01:52:38 +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 3F762E09FF for ; Sun, 27 Nov 2016 01:52:38 +0000 (UTC) Received: from oystercatcher.gentoo.org (oystercatcher.gentoo.org [148.251.78.52]) (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 4B0AC340F27 for ; Sun, 27 Nov 2016 01:52:37 +0000 (UTC) Received: from localhost.localdomain (localhost [127.0.0.1]) by oystercatcher.gentoo.org (Postfix) with ESMTP id A74D949A for ; Sun, 27 Nov 2016 01:52:35 +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: <1480211522.e2e85efc16e3bc2bc7defccc8f184a704f533988.vapier@gentoo> Subject: [gentoo-commits] proj/portage-utils:master commit in: / X-VCS-Repository: proj/portage-utils X-VCS-Files: main.c X-VCS-Directories: / X-VCS-Committer: vapier X-VCS-Committer-Name: Mike Frysinger X-VCS-Revision: e2e85efc16e3bc2bc7defccc8f184a704f533988 X-VCS-Branch: master Date: Sun, 27 Nov 2016 01:52:35 +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: 078ff4b5-a7bd-4117-a54d-d78845028261 X-Archives-Hash: a95a1de58ee1f6bac5f04ae248739854 commit: e2e85efc16e3bc2bc7defccc8f184a704f533988 Author: Mike Frysinger gentoo org> AuthorDate: Sun Nov 27 01:52:02 2016 +0000 Commit: Mike Frysinger gentoo org> CommitDate: Sun Nov 27 01:52:02 2016 +0000 URL: https://gitweb.gentoo.org/proj/portage-utils.git/commit/?id=e2e85efc cache: fix open cache file leakage main.c | 1 + 1 file changed, 1 insertion(+) diff --git a/main.c b/main.c index b99768d..af2ccce 100644 --- a/main.c +++ b/main.c @@ -1206,6 +1206,7 @@ portage_cache *cache_read_file_pms(const char *file) return ret; err: + if (f) fclose(f); if (ret) cache_free(ret); return NULL; }