From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from lists.gentoo.org (pigeon.gentoo.org [208.92.234.80]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by finch.gentoo.org (Postfix) with ESMTPS id 04ED71395E2 for ; Tue, 15 Nov 2016 03:34:42 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id E3C2BE0B26; Tue, 15 Nov 2016 03:34:38 +0000 (UTC) Received: from smtp.gentoo.org (smtp.gentoo.org [140.211.166.183]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by pigeon.gentoo.org (Postfix) with ESMTPS id BF56BE0A61 for ; Tue, 15 Nov 2016 03:34:38 +0000 (UTC) Received: from oystercatcher.gentoo.org (unknown [IPv6:2a01:4f8:202:4333:225:90ff:fed9:fc84]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.gentoo.org (Postfix) with ESMTPS id A63C43412BC for ; Tue, 15 Nov 2016 03:34:36 +0000 (UTC) Received: from localhost.localdomain (localhost [127.0.0.1]) by oystercatcher.gentoo.org (Postfix) with ESMTP id F2FFE24BB for ; Tue, 15 Nov 2016 03:34:34 +0000 (UTC) From: "Mike Frysinger" To: gentoo-commits@lists.gentoo.org Content-Transfer-Encoding: 8bit Content-type: text/plain; charset=UTF-8 Reply-To: gentoo-dev@lists.gentoo.org, "Mike Frysinger" Message-ID: <1479176650.2020f99b795192c9aff24fe6b1c3e3d8220d1ae0.vapier@gentoo> Subject: [gentoo-commits] proj/portage-utils:master commit in: / X-VCS-Repository: proj/portage-utils X-VCS-Files: qcheck.c X-VCS-Directories: / X-VCS-Committer: vapier X-VCS-Committer-Name: Mike Frysinger X-VCS-Revision: 2020f99b795192c9aff24fe6b1c3e3d8220d1ae0 X-VCS-Branch: master Date: Tue, 15 Nov 2016 03:34:34 +0000 (UTC) Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-Id: Gentoo Linux mail X-BeenThere: gentoo-commits@lists.gentoo.org X-Archives-Salt: e2115ce2-3e40-4487-bd94-f6e9ac254222 X-Archives-Hash: f54a12c09c5bd8d715e13af35ea83fb6 commit: 2020f99b795192c9aff24fe6b1c3e3d8220d1ae0 Author: Mike Frysinger gentoo org> AuthorDate: Tue Nov 15 02:24:10 2016 +0000 Commit: Mike Frysinger gentoo 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);