commit:     5a85c89990287331a2c440577aa8a01a34f19b9e
Author:     Fabian Groffen <grobian <AT> gentoo <DOT> org>
AuthorDate: Thu Feb  5 14:00:47 2026 +0000
Commit:     Fabian Groffen <grobian <AT> gentoo <DOT> org>
CommitDate: Thu Feb  5 14:00:47 2026 +0000
URL:        https://gitweb.gentoo.org/proj/portage-utils.git/commit/?id=5a85c899

libq/dep: don't free nodes as arrays, don't free nodes which are refs

Thinko, causing the free errors in https://bugs.gentoo.org/968490#c5

Bug: https://bugs.gentoo.org/968490
Signed-off-by: Fabian Groffen <grobian <AT> gentoo.org>

 libq/dep.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/libq/dep.c b/libq/dep.c
index 91cb4929..ea89b1b3 100644
--- a/libq/dep.c
+++ b/libq/dep.c
@@ -361,7 +361,7 @@ dep_node_t *dep_grow_tree
 
 dep_grow_tree_fail:
   array_deepfree(tokens, (array_free_cb *)dep_burn_tree);
-  array_deepfree(res, (array_free_cb *)array_free);
+  array_free(res);
 
   if (ret != NULL &&
       ret->members != NULL &&

Reply via email to