From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from lists.gentoo.org (pigeon.gentoo.org [208.92.234.80]) by finch.gentoo.org (Postfix) with ESMTP id F3852138AD0 for ; Sat, 21 Feb 2015 18:06:47 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id 393C1E091F; Sat, 21 Feb 2015 18:06:47 +0000 (UTC) Received: from smtp.gentoo.org (smtp.gentoo.org [140.211.166.183]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by pigeon.gentoo.org (Postfix) with ESMTPS id D5D35E091F for ; Sat, 21 Feb 2015 18:06:46 +0000 (UTC) Received: from oystercatcher.gentoo.org (oystercatcher.gentoo.org [148.251.78.52]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by smtp.gentoo.org (Postfix) with ESMTPS id D794E340A50 for ; Sat, 21 Feb 2015 18:06:45 +0000 (UTC) Received: from localhost.localdomain (localhost [127.0.0.1]) by oystercatcher.gentoo.org (Postfix) with ESMTP id 98E201240A for ; Sat, 21 Feb 2015 18:06:43 +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: <1424541669.b23f8bb7a222f06d89918601778581f21413fc38.vapier@gentoo> Subject: [gentoo-commits] proj/portage-utils:master commit in: / X-VCS-Repository: proj/portage-utils X-VCS-Files: qmerge.c X-VCS-Directories: / X-VCS-Committer: vapier X-VCS-Committer-Name: Mike Frysinger X-VCS-Revision: b23f8bb7a222f06d89918601778581f21413fc38 X-VCS-Branch: master Date: Sat, 21 Feb 2015 18:06:43 +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: 7111ca3c-ade3-4686-b7f4-573fd6e13de5 X-Archives-Hash: 3e50c54c0f3326df9de1439c592606f3 commit: b23f8bb7a222f06d89918601778581f21413fc38 Author: Mike Frysinger gentoo org> AuthorDate: Sat Feb 21 18:01:09 2015 +0000 Commit: Mike Frysinger gentoo org> CommitDate: Sat Feb 21 18:01:09 2015 +0000 URL: http://sources.gentoo.org/gitweb/?p=proj/portage-utils.git;a=commit;h=b23f8bb7 qmerge: fix use-after-freed error --- qmerge.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/qmerge.c b/qmerge.c index e4b8f96..44b2f47 100644 --- a/qmerge.c +++ b/qmerge.c @@ -1197,9 +1197,9 @@ pkg_unmerge(const char *cat, const char *pkgname, queue *keep) qprintf("%s%s%s %s%s%s/\n", rm ? YELLOW : GREEN, rm ? "---" : "<<<", NORM, DKBLUE, dir, NORM); + dirs = dirs->next; free(list->data); free(list); - dirs = dirs->next; } freeargv(cp_argc, cp_argv);