commit: cd9df5a8a1e7ab32d91cf691142f9efd362dd9d7
Author: Fabian Groffen <grobian <AT> gentoo <DOT> org>
AuthorDate: Mon Jan 26 18:13:24 2026 +0000
Commit: Fabian Groffen <grobian <AT> gentoo <DOT> org>
CommitDate: Mon Jan 26 18:13:24 2026 +0000
URL: https://gitweb.gentoo.org/proj/portage-utils.git/commit/?id=cd9df5a8
qlop: don't free input argument before returning it, CID 557229
Input array atoms is supposed to be enriched, if anything, not freed,
for it is given to us as input and returned as well for the caller to
own it.
Signed-off-by: Fabian Groffen <grobian <AT> gentoo.org>
qlop.c | 1 -
1 file changed, 1 deletion(-)
diff --git a/qlop.c b/qlop.c
index c7e0bb68..b7f77698 100644
--- a/qlop.c
+++ b/qlop.c
@@ -1548,7 +1548,6 @@ static array *probe_proc(array *atoms)
}
atom_implode(atom);
}
- array_free(atoms);
}
/* ret_atoms is allocated on the stack, so copy into atoms which is