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 14:51:47
Message-Id: 1644159074.42a04c468aff667e0dbaf69aef07c9f679176470.grobian@gentoo
1 commit: 42a04c468aff667e0dbaf69aef07c9f679176470
2 Author: Fabian Groffen <grobian <AT> gentoo <DOT> org>
3 AuthorDate: Sun Feb 6 14:51:14 2022 +0000
4 Commit: Fabian Groffen <grobian <AT> gentoo <DOT> org>
5 CommitDate: Sun Feb 6 14:51:14 2022 +0000
6 URL: https://gitweb.gentoo.org/proj/portage-utils.git/commit/?id=42a04c46
7
8 libq/tree: plug leak in tree_match_atom
9
10 Signed-off-by: Fabian Groffen <grobian <AT> gentoo.org>
11
12 libq/tree.c | 1 +
13 1 file changed, 1 insertion(+)
14
15 diff --git a/libq/tree.c b/libq/tree.c
16 index 7285cd7..1e0e623 100644
17 --- a/libq/tree.c
18 +++ b/libq/tree.c
19 @@ -1778,6 +1778,7 @@ tree_match_atom(tree_ctx *ctx, const depend_atom *query, int flags)
20 sizeof(*cat_ctx->pkg_ctxs), tree_pkg_compar);
21 }
22 }
23 + xarrayfree_int(cats);
24 }
25
26 /* activate cache for future lookups, tree_match_atom relies on