From patchwork Tue Jan 16 14:17:19 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Paolo Bonzini X-Patchwork-Id: 861665 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="I2KkJFRH"; 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 3zLYMW3vJdz9s7v for ; Wed, 17 Jan 2018 02:01:27 +1100 (AEDT) Received: from localhost ([::1]:39487 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ebSjt-0005DU-Io for incoming@patchwork.ozlabs.org; Tue, 16 Jan 2018 10:01:25 -0500 Received: from eggs.gnu.org ([2001:4830:134:3::10]:50639) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ebS4M-0003M9-Ke for qemu-devel@nongnu.org; Tue, 16 Jan 2018 09:18:31 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1ebS4L-00058x-Fa for qemu-devel@nongnu.org; Tue, 16 Jan 2018 09:18:30 -0500 Received: from mail-wr0-x244.google.com ([2a00:1450:400c:c0c::244]:45409) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1ebS4L-000587-9Q for qemu-devel@nongnu.org; Tue, 16 Jan 2018 09:18:29 -0500 Received: by mail-wr0-x244.google.com with SMTP id 16so15333341wry.12 for ; Tue, 16 Jan 2018 06:18:29 -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=I2KkJFRH8rokifQ13AeQt/HPqh2mR9pnNIkC4D/YQsAPu6LAyCmV2E+6BfaRpoAOkZ 6C/ppCTK+B9+HF4bTnw0u7DgLKvpVEsLRmqBiHIToE3hU2a5fzRXWAXToEfThnAvBfMt ZvZ3I9hq0JsOzoeCN6ostqRMWK7Kc+HD+Q6k05Gk4jCk3bafA1YzMJEhHHqDi2de0t8Y m+3UOYRVoAFxOcKnb9aozBB68DiQeg1vtTRCOU747lO2Kq7byKurdUW0aU5WP07QLlKl L22uKCiSBPAZedr9ktVsBbgi7BpcVscV8xLd7Fx+UvaITDU/OxKgYF1P1IMDi/vq3lsR JRsg== 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=go2+EgvL7TuvgurQeUylJpxI0KHkvK3FmQWf0dLMDD0SEyMAstmpolDNmkwTgm9BS0 zhpQGmgwSmoTrGg2U4fSbZrcrT4b9R7qRzNcnEyUzYavBfasdhH3r5szVE+f6u/G0g5l oDb/6qM1W+u3msCNx7KpcKWn/FCg9AqfzwLx63dQwNSNKkdK19MprJ517HacpCTDEfOi dDV+idj+bDqhB6uer7QoA9MnVZePLN4+uogHKU9cmMaHD7uzG99t8FyP1Ali87jB/Mrk kI/L/I9TNBcx07VlhBus3u7cLsUXqZKPcJ9qRvquw+u3kHb8Lnp9eT/S2Ie6fky4pn/2 gwXA== X-Gm-Message-State: AKwxytcBfLVKkuHTJFc/myBlYKhvtZNhfi8SVy1PojSaRsD7UbgSW9po GrJ55/VapQYqSLxIwMG8UgSDU/4f X-Google-Smtp-Source: ACJfBovUViZ/jzI7n9gZwLP98hFmsCrIxbQQOVTkXYsKfUscaELzTxfA2bflXWXzY3uOHTyplfIT3g== X-Received: by 10.223.166.16 with SMTP id k16mr11939956wrc.100.1516112308015; Tue, 16 Jan 2018 06:18:28 -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 u10sm1537758wrg.6.2018.01.16.06.18.26 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Tue, 16 Jan 2018 06:18:27 -0800 (PST) From: Paolo Bonzini To: qemu-devel@nongnu.org Date: Tue, 16 Jan 2018 15:17:19 +0100 Message-Id: <1516112253-14480-38-git-send-email-pbonzini@redhat.com> X-Mailer: git-send-email 1.8.3.1 In-Reply-To: <1516112253-14480-1-git-send-email-pbonzini@redhat.com> References: <1516112253-14480-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::244 Subject: [Qemu-devel] [PULL 37/51] 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; } }