commit: ad4eb81f3fda3b3df705c48c875c901f814ec74a
Author: Boris Staletic <boris.staletic <AT> protonmail <DOT> com>
AuthorDate: Thu Mar 28 19:57:26 2024 +0000
Commit: Fabian Groffen <grobian <AT> gentoo <DOT> org>
CommitDate: Fri Mar 29 10:58:23 2024 +0000
URL: https://gitweb.gentoo.org/proj/portage-utils.git/commit/?id=ad4eb81f
qlop: Do not leak avgs array in predict mode
Previously, `values_set(merge_averages, avgs)` would allocate `avgs`,
then it would be used in `array_for_each(atoms, i, atom)`, but a call to
`xarrayfree_int(avgs)` was missing after the loop.
Hopefully, this, along with #26, will solve the issues from #19.
Signed-off-by: Fabian Groffen <grobian <AT> gentoo.org>
qlop.c | 1 +
1 file changed, 1 insertion(+)
diff --git a/qlop.c b/qlop.c
index cfad246..ae0bc3b 100644
--- a/qlop.c
+++ b/qlop.c
@@ -1324,6 +1324,7 @@ static int do_emerge_log(
}
}
}
+ xarrayfree_int(avgs);
}
{