From patchwork Fri Jan 12 11:31:03 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Paolo Bonzini X-Patchwork-Id: 859825 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Authentication-Results: ozlabs.org; spf=pass (mailfrom) smtp.mailfrom=nongnu.org (client-ip=2001:4830:134:3::11; helo=lists.gnu.org; envelope-from=qemu-devel-bounces+incoming=patchwork.ozlabs.org@nongnu.org; receiver=) Authentication-Results: ozlabs.org; dkim=fail reason="signature verification failed" (2048-bit key; unprotected) header.d=gmail.com header.i=@gmail.com header.b="fc0ydkGV"; dkim-atps=neutral Received: from lists.gnu.org (lists.gnu.org [IPv6:2001:4830:134:3::11]) (using TLSv1 with cipher AES256-SHA (256/256 bits)) (No client certificate requested) by ozlabs.org (Postfix) with ESMTPS id 3zJ1mq0GlCz9t3G for ; Fri, 12 Jan 2018 23:11:07 +1100 (AEDT) Received: from localhost ([::1]:36277 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1eZyAr-0000Ka-3M for incoming@patchwork.ozlabs.org; Fri, 12 Jan 2018 07:11:05 -0500 Received: from eggs.gnu.org ([2001:4830:134:3::10]:41985) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1eZxZC-0007rw-4W for qemu-devel@nongnu.org; Fri, 12 Jan 2018 06:32:14 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1eZxZ8-0005qO-2z for qemu-devel@nongnu.org; Fri, 12 Jan 2018 06:32:10 -0500 Received: from mail-wr0-x241.google.com ([2a00:1450:400c:c0c::241]:34931) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1eZxZ7-0005pb-TD for qemu-devel@nongnu.org; Fri, 12 Jan 2018 06:32:06 -0500 Received: by mail-wr0-x241.google.com with SMTP id g38so1843348wrd.2 for ; Fri, 12 Jan 2018 03:32:05 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=sender:from:to:cc:subject:date:message-id:in-reply-to:references; bh=Wn0nyPG/IWRdwKUgHr3FwdOO8lei4vduytZDfGiCjCI=; b=fc0ydkGVH21folKPJqLRDn4DdNAfRq+1KfcIdaaUzIrPF75StUqMhCUWLqAZliR2HG mzAfPDSrMDR0lvck0h26dC7TaDXnelTv6W0bQufOY3H3hOJUwN1K/Jvh87fR6hN4VHx6 KvfykxmBoe8yfFlh9Ju84+4/5XmhJlFUAiT1gCAO+uM7goDqLOPndPpmxEz24J3nFwlk SmgWdKeQNMGa9K2gQWJqS4NXPDzvAWsjp6t1t5781LWbxdNtGGmGbl2Kb2rhALFiInzP a6FKE0dfN+SxXUU6fYQ6vy4vGgX5p+8CIGfFE9pc6eXtkgAPlDlUHcS+UxJOOpCSdDQJ KwrA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:sender:from:to:cc:subject:date:message-id :in-reply-to:references; bh=Wn0nyPG/IWRdwKUgHr3FwdOO8lei4vduytZDfGiCjCI=; b=HHwdUPAgzTEckPc2Uz+wLHpKo/urxCHOChczVSfjgNAqKOV8k/PfryvKqFpKa1BBY/ d7TP0IkeY1tHUC9JXuTGd4AA5WV8JQbIqyklTvsHKFqxBtJvxydTw47IZgontcmco0Iz /uXcwE8aNlvWvAIoi9gyBIQ94PEBtgdYhWopyYb3aMDjgpX9UG6oac3HbMpwEKqQGQak XNobVTCzEQXRcQghOhY/ODQa1wMJ7AMyXqLQoVZQbFmh3R7vtNbQyZG7rJC+KVgzu/F2 zP4twGN+sXNzuD61A9t1iBC+M74d2HDEPhnSa3vkEnBzRxPq2hPCa3Y1UvU30ZrvjqO8 Vx7g== X-Gm-Message-State: AKGB3mL8E2zu+ZSxsmL5m1xT6u9Jh0XhwMF4pO7yM7B6VNJvs35Dka/x 2Y7XrDXYWgHKKrs8xjDSa3Cr2v+U X-Google-Smtp-Source: ACJfBou4oL2FKz8HuNP8YOQP/o58upMsMGXI998YS4tqUOxU+e4sIzy2I4pqfCOy2XoBghv0pKWRcA== X-Received: by 10.223.176.17 with SMTP id f17mr16266328wra.178.1515756724582; Fri, 12 Jan 2018 03:32:04 -0800 (PST) Received: from 640k.lan (dynamic-adsl-78-12-229-84.clienti.tiscali.it. [78.12.229.84]) by smtp.gmail.com with ESMTPSA id l8sm2732271wmg.46.2018.01.12.03.32.03 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Fri, 12 Jan 2018 03:32:03 -0800 (PST) From: Paolo Bonzini To: qemu-devel@nongnu.org Date: Fri, 12 Jan 2018 12:31:03 +0100 Message-Id: <1515756676-3860-40-git-send-email-pbonzini@redhat.com> X-Mailer: git-send-email 1.8.3.1 In-Reply-To: <1515756676-3860-1-git-send-email-pbonzini@redhat.com> References: <1515756676-3860-1-git-send-email-pbonzini@redhat.com> X-detected-operating-system: by eggs.gnu.org: Genre and OS details not recognized. X-Received-From: 2a00:1450:400c:c0c::241 Subject: [Qemu-devel] [PULL 39/52] irq: fix memory leak X-BeenThere: qemu-devel@nongnu.org X-Mailman-Version: 2.1.21 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: linzhecheng Errors-To: qemu-devel-bounces+incoming=patchwork.ozlabs.org@nongnu.org Sender: "Qemu-devel" From: linzhecheng entry is moved from list but is not freed. Signed-off-by: linzhecheng Message-Id: <20171225024704.19540-1-linzhecheng@huawei.com> Signed-off-by: Paolo Bonzini --- target/i386/kvm.c | 1 + 1 file changed, 1 insertion(+) diff --git a/target/i386/kvm.c b/target/i386/kvm.c index 825aea5..4912f4d 100644 --- a/target/i386/kvm.c +++ b/target/i386/kvm.c @@ -3470,6 +3470,7 @@ int kvm_arch_release_virq_post(int virq) if (entry->virq == virq) { trace_kvm_x86_remove_msi_route(virq); QLIST_REMOVE(entry, list); + g_free(entry); break; } }