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.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits)) (No client certificate requested) by finch.gentoo.org (Postfix) with ESMTPS id D16CC158087 for ; Sun, 6 Feb 2022 13:27:29 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id 291DD2BC024; Sun, 6 Feb 2022 13:27:29 +0000 (UTC) Received: from smtp.gentoo.org (woodpecker.gentoo.org [140.211.166.183]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits)) (No client certificate requested) by pigeon.gentoo.org (Postfix) with ESMTPS id 8B9B02BC023 for ; Sun, 6 Feb 2022 13:27:28 +0000 (UTC) Received: from oystercatcher.gentoo.org (unknown [IPv6:2a01:4f8:202:4333:225:90ff:fed9:fc84]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (No client certificate requested) by smtp.gentoo.org (Postfix) with ESMTPS id 7AF6E342D64 for ; Sun, 6 Feb 2022 13:27:27 +0000 (UTC) Received: from localhost.localdomain (localhost [IPv6:::1]) by oystercatcher.gentoo.org (Postfix) with ESMTP id EA39C2AF for ; Sun, 6 Feb 2022 13:27:25 +0000 (UTC) From: "Fabian Groffen" To: gentoo-commits@lists.gentoo.org Content-Transfer-Encoding: 8bit Content-type: text/plain; charset=UTF-8 Reply-To: gentoo-dev@lists.gentoo.org, "Fabian Groffen" Message-ID: <1644153894.d0767ea8eab387c65a90445bfd5d8e6e196c30d6.grobian@gentoo> Subject: [gentoo-commits] proj/portage-utils:master commit in: libq/ X-VCS-Repository: proj/portage-utils X-VCS-Files: libq/tree.c X-VCS-Directories: libq/ X-VCS-Committer: grobian X-VCS-Committer-Name: Fabian Groffen X-VCS-Revision: d0767ea8eab387c65a90445bfd5d8e6e196c30d6 X-VCS-Branch: master Date: Sun, 6 Feb 2022 13:27:25 +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-Auto-Response-Suppress: DR, RN, NRN, OOF, AutoReply X-Archives-Salt: 41480e38-3016-4663-9fb5-dd48d2d200e8 X-Archives-Hash: a71df779d211730bfcbdfa94eda88a35 commit: d0767ea8eab387c65a90445bfd5d8e6e196c30d6 Author: Fabian Groffen gentoo org> AuthorDate: Sun Feb 6 13:24:54 2022 +0000 Commit: Fabian Groffen gentoo org> CommitDate: Sun Feb 6 13:24:54 2022 +0000 URL: https://gitweb.gentoo.org/proj/portage-utils.git/commit/?id=d0767ea8 libq/tree: ensure we free cache.store (for Packages file) Signed-off-by: Fabian Groffen gentoo.org> libq/tree.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/libq/tree.c b/libq/tree.c index 114541d..db0d2d2 100644 --- a/libq/tree.c +++ b/libq/tree.c @@ -1,5 +1,5 @@ /* - * Copyright 2005-2021 Gentoo Foundation + * Copyright 2005-2022 Gentoo Foundation * Distributed under the terms of the GNU General Public License v2 * * Copyright 2005-2008 Ned Ludd - @@ -194,6 +194,8 @@ tree_close(tree_ctx *ctx) xarrayfree_int(t); } + if (ctx->cache.store != NULL) + free(ctx->cache.store); closedir(ctx->dir); /* closedir() above does this for us: */