commit: 2020f99b795192c9aff24fe6b1c3e3d8220d1ae0 Author: Mike Frysinger <vapier <AT> gentoo <DOT> org> AuthorDate: Tue Nov 15 02:24:10 2016 +0000 Commit: Mike Frysinger <vapier <AT> gentoo <DOT> org> CommitDate: Tue Nov 15 02:24:10 2016 +0000 URL: https://gitweb.gentoo.org/proj/portage-utils.git/commit/?id=2020f99b
qcheck: fix leakage with --skip regex array qcheck.c | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/qcheck.c b/qcheck.c index 79f52a9..40968a6 100644 --- a/qcheck.c +++ b/qcheck.c @@ -382,6 +382,11 @@ int qcheck_main(int argc, char **argv) } ret = q_vdb_foreach_pkg_sorted(qcheck_cb, &state); + { + void *regex; + array_for_each(regex_arr, i, regex) + regfree(regex); + } xarrayfree(regex_arr); array_for_each(atoms, i, atom) atom_implode(atom);