From patchwork Fri Oct 19 05:20:10 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Li Qiang X-Patchwork-Id: 10648665 Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork-2.web.codeaurora.org (Postfix) with ESMTP id 0E0D2109C for ; Fri, 19 Oct 2018 05:22:09 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id EE89E28928 for ; Fri, 19 Oct 2018 05:22:08 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id E171E28B3C; Fri, 19 Oct 2018 05:22:08 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on pdx-wl-mail.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-7.7 required=2.0 tests=BAYES_00,DKIM_ADSP_CUSTOM_MED, DKIM_INVALID,DKIM_SIGNED,FREEMAIL_FROM,MAILING_LIST_MULTI,RCVD_IN_DNSWL_HI autolearn=ham version=3.3.1 Received: from lists.gnu.org (lists.gnu.org [208.118.235.17]) (using TLSv1 with cipher AES256-SHA (256/256 bits)) (No client certificate requested) by mail.wl.linuxfoundation.org (Postfix) with ESMTPS id 9ECEA28928 for ; Fri, 19 Oct 2018 05:22:08 +0000 (UTC) Received: from localhost ([::1]:47050 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1gDNEd-0004sk-Pn for patchwork-qemu-devel@patchwork.kernel.org; Fri, 19 Oct 2018 01:22:07 -0400 Received: from eggs.gnu.org ([2001:4830:134:3::10]:42990) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1gDNDE-0003lR-NT for qemu-devel@nongnu.org; Fri, 19 Oct 2018 01:20:41 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1gDNDD-0000F6-E0 for qemu-devel@nongnu.org; Fri, 19 Oct 2018 01:20:40 -0400 Received: from mail-pf1-x444.google.com ([2607:f8b0:4864:20::444]:35320) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1gDNDC-00009V-Vl for qemu-devel@nongnu.org; Fri, 19 Oct 2018 01:20:39 -0400 Received: by mail-pf1-x444.google.com with SMTP id l17-v6so15958946pff.2 for ; Thu, 18 Oct 2018 22:20:38 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:cc:subject:date:message-id:in-reply-to:references; bh=8MIrDqrp3Yt71lG6bUOK6Htdxo6OYsbx0/yHbOzIvMg=; b=YfyXYXlho0BjK9XWShyQSLxhH3nwh64iScsWW139Subib5gunyt5iSIJPCkHYiic4c 1jUbzSVtEdEBLnzzAHwG89rjS1rMzafItlXMMUr/3m7bHpqKriOolWKjmG6wWzYZ2Eyq UfSyCNS91MFMaiJeay3Jz+EW0S8OhekC/1XCbpwjwv0wL/oxLNXjpGN9+ajYy4L/hobK r07bUY0by2EauIuAtiIYDem9cTpl7zDjTFdUBDmjH6YWv+tX9Z/sMxeIJ0F+QsOJXZNU VO0J/XNUDoasKMgToVOoVi7AynaKwvGyG0O8IFfLxuN4SHvXENCVm8R7Zm4AAN18ZA/J faOg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references; bh=8MIrDqrp3Yt71lG6bUOK6Htdxo6OYsbx0/yHbOzIvMg=; b=TU2f4Ok7FQ6/HX5tSST1zc13kVDEzjEPZiKsRrURM/E/uGBROBRch/bKpw7gbr32x7 II47cyKEB41DagbsuSsw5muMorMfvpThrPZGgJl3L/iir/TKJkaODn3+ByFmNNkYEAPH ynmyZjQfeeKK1vTDiSBeLwtDowzOQ5wi27LZ+zLt7KMVGiyZ9XIkt29Lcbsaph3PBzvd BvAtxiE05rAGBSHqlUxWkCBa5a3cfRD28zF9sTAo4FrSaoe/zoF9X3BPL9kAfZz2h3+D HLOFg08LJzkUCbHYyztEkeRCZGnNHgWt1xZl4Z/tOAhOFFjoN9xwh1QIK0r9v3KiOiiR JRgw== X-Gm-Message-State: ABuFfojXiZGgEarj43MiGc++8PgEKBvBmwFpAMleC1JgbrnNcrMqvElU LAFw/eI7OfN2UPQ8HoG6V1I= X-Google-Smtp-Source: ACcGV639cRlrmaZfjBhCJa5A4RYhAG4zWQobPmC47Hw6AJx6UWvNZxzQmE/x5hpWt6Oa2tHtLJGHDg== X-Received: by 2002:a63:6c4a:: with SMTP id h71-v6mr30877774pgc.326.1539926437702; Thu, 18 Oct 2018 22:20:37 -0700 (PDT) Received: from localhost.localdomain.localdomain ([103.65.40.100]) by smtp.gmail.com with ESMTPSA id p1-v6sm25075191pff.128.2018.10.18.22.20.36 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Thu, 18 Oct 2018 22:20:37 -0700 (PDT) From: Li Qiang To: alex.williamson@redhat.com Date: Thu, 18 Oct 2018 22:20:10 -0700 Message-Id: <1539926412-21831-6-git-send-email-liq3ea@gmail.com> X-Mailer: git-send-email 1.8.3.1 In-Reply-To: <1539926412-21831-1-git-send-email-liq3ea@gmail.com> References: <1539926412-21831-1-git-send-email-liq3ea@gmail.com> X-detected-operating-system: by eggs.gnu.org: Genre and OS details not recognized. X-Received-From: 2607:f8b0:4864:20::444 Subject: [Qemu-devel] [PATCH 5/7] vfio: platform: cleanup the notifier in error path 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: Li Qiang , philmd@redhat.com, qemu-devel@nongnu.org Errors-To: qemu-devel-bounces+patchwork-qemu-devel=patchwork.kernel.org@nongnu.org Sender: "Qemu-devel" X-Virus-Scanned: ClamAV using ClamSMTP Signed-off-by: Li Qiang --- hw/vfio/platform.c | 1 + 1 file changed, 1 insertion(+) diff --git a/hw/vfio/platform.c b/hw/vfio/platform.c index 5992fe7..6a4fd7b 100644 --- a/hw/vfio/platform.c +++ b/hw/vfio/platform.c @@ -80,6 +80,7 @@ static VFIOINTp *vfio_init_intp(VFIODevice *vbasedev, intp->unmask = g_malloc0(sizeof(EventNotifier)); ret = event_notifier_init(intp->unmask, 0); if (ret) { + event_notifier_cleanup(intp->interrupt); g_free(intp->interrupt); g_free(intp->unmask); g_free(intp);