aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorFabian Groffen <grobian@gentoo.org>2022-02-06 15:51:14 +0100
committerFabian Groffen <grobian@gentoo.org>2022-02-06 15:51:14 +0100
commit42a04c468aff667e0dbaf69aef07c9f679176470 (patch)
treef433b80bf9a8480e30edaa12738415a3426ea121
parent.github: try to fix macOS build (diff)
downloadportage-utils-42a04c468aff667e0dbaf69aef07c9f679176470.tar.gz
portage-utils-42a04c468aff667e0dbaf69aef07c9f679176470.tar.bz2
portage-utils-42a04c468aff667e0dbaf69aef07c9f679176470.zip
libq/tree: plug leak in tree_match_atom
Signed-off-by: Fabian Groffen <grobian@gentoo.org>
-rw-r--r--libq/tree.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/libq/tree.c b/libq/tree.c
index 7285cd7d..1e0e6230 100644
--- a/libq/tree.c
+++ b/libq/tree.c
@@ -1778,6 +1778,7 @@ tree_match_atom(tree_ctx *ctx, const depend_atom *query, int flags)
sizeof(*cat_ctx->pkg_ctxs), tree_pkg_compar);
}
}
+ xarrayfree_int(cats);
}
/* activate cache for future lookups, tree_match_atom relies on