Gentoo Archives: gentoo-commits

From: Fabian Groffen <grobian@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] proj/portage-utils:master commit in: libq/
Date: Sun, 06 Feb 2022 13:27:29
Message-Id: 1644153894.d0767ea8eab387c65a90445bfd5d8e6e196c30d6.grobian@gentoo
1 commit: d0767ea8eab387c65a90445bfd5d8e6e196c30d6
2 Author: Fabian Groffen <grobian <AT> gentoo <DOT> org>
3 AuthorDate: Sun Feb 6 13:24:54 2022 +0000
4 Commit: Fabian Groffen <grobian <AT> gentoo <DOT> org>
5 CommitDate: Sun Feb 6 13:24:54 2022 +0000
6 URL: https://gitweb.gentoo.org/proj/portage-utils.git/commit/?id=d0767ea8
7
8 libq/tree: ensure we free cache.store (for Packages file)
9
10 Signed-off-by: Fabian Groffen <grobian <AT> gentoo.org>
11
12 libq/tree.c | 4 +++-
13 1 file changed, 3 insertions(+), 1 deletion(-)
14
15 diff --git a/libq/tree.c b/libq/tree.c
16 index 114541d..db0d2d2 100644
17 --- a/libq/tree.c
18 +++ b/libq/tree.c
19 @@ -1,5 +1,5 @@
20 /*
21 - * Copyright 2005-2021 Gentoo Foundation
22 + * Copyright 2005-2022 Gentoo Foundation
23 * Distributed under the terms of the GNU General Public License v2
24 *
25 * Copyright 2005-2008 Ned Ludd - <solar@g.o>
26 @@ -194,6 +194,8 @@ tree_close(tree_ctx *ctx)
27
28 xarrayfree_int(t);
29 }
30 + if (ctx->cache.store != NULL)
31 + free(ctx->cache.store);
32
33 closedir(ctx->dir);
34 /* closedir() above does this for us: */