From nobody Wed May 14 06:59:18 2025 Delivered-To: importer@patchew.org Received-SPF: pass (zoho.com: domain of redhat.com designates 209.132.183.28 as permitted sender) client-ip=209.132.183.28; envelope-from=libvir-list-bounces@redhat.com; helo=mx1.redhat.com; Authentication-Results: mx.zohomail.com; spf=pass (zoho.com: domain of redhat.com designates 209.132.183.28 as permitted sender) smtp.mailfrom=libvir-list-bounces@redhat.com; dmarc=pass(p=none dis=none) header.from=redhat.com Return-Path: Received: from mx1.redhat.com (mx1.redhat.com [209.132.183.28]) by mx.zohomail.com with SMTPS id 1525950099412179.3213787938987; Thu, 10 May 2018 04:01:39 -0700 (PDT) Received: from smtp.corp.redhat.com (int-mx05.intmail.prod.int.phx2.redhat.com [10.5.11.15]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by mx1.redhat.com (Postfix) with ESMTPS id 35DBF315009B; Thu, 10 May 2018 11:01:37 +0000 (UTC) Received: from colo-mx.corp.redhat.com (colo-mx01.intmail.prod.int.phx2.redhat.com [10.5.11.20]) by smtp.corp.redhat.com (Postfix) with ESMTPS id F2D345D6A8; Thu, 10 May 2018 11:01:36 +0000 (UTC) Received: from lists01.pubmisc.prod.ext.phx2.redhat.com (lists01.pubmisc.prod.ext.phx2.redhat.com [10.5.19.33]) by colo-mx.corp.redhat.com (Postfix) with ESMTP id 4D6981801241; Thu, 10 May 2018 11:01:36 +0000 (UTC) Received: from smtp.corp.redhat.com (int-mx04.intmail.prod.int.rdu2.redhat.com [10.11.54.4]) by lists01.pubmisc.prod.ext.phx2.redhat.com (8.13.8/8.13.8) with ESMTP id w4AB1Xnb021681 for ; Thu, 10 May 2018 07:01:33 -0400 Received: by smtp.corp.redhat.com (Postfix) id 983262026E03; Thu, 10 May 2018 11:01:33 +0000 (UTC) Received: from antique-work.brq.redhat.com (unknown [10.43.2.152]) by smtp.corp.redhat.com (Postfix) with ESMTP id 3E1B32026DEF for ; Thu, 10 May 2018 11:01:33 +0000 (UTC) From: Pavel Hrdina To: libvir-list@redhat.com Date: Thu, 10 May 2018 13:01:29 +0200 Message-Id: <3ff492898b443ce91b31049c6ee5d4a7966103a8.1525948323.git.phrdina@redhat.com> In-Reply-To: References: In-Reply-To: References: X-Scanned-By: MIMEDefang 2.78 on 10.11.54.4 X-loop: libvir-list@redhat.com Subject: [libvirt] [dbus PATCH 1/4] gdbus: fix memory and FD leak in virtDBusGDBusHandleMethod X-BeenThere: libvir-list@redhat.com X-Mailman-Version: 2.1.12 Precedence: junk List-Id: Development discussions about the libvirt library & tools List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable Sender: libvir-list-bounces@redhat.com Errors-To: libvir-list-bounces@redhat.com X-Scanned-By: MIMEDefang 2.79 on 10.5.11.15 X-Greylist: Sender IP whitelisted, not delayed by milter-greylist-4.5.16 (mx1.redhat.com [10.5.110.41]); Thu, 10 May 2018 11:01:37 +0000 (UTC) X-ZohoMail: RSF_0 Z_629925259 SPT_0 Content-Type: text/plain; charset="utf-8" Signed-off-by: Pavel Hrdina --- src/gdbus.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/gdbus.c b/src/gdbus.c index 3407116..2cce6ff 100644 --- a/src/gdbus.c +++ b/src/gdbus.c @@ -1,5 +1,6 @@ #include "gdbus.h" =20 +#include #include =20 struct _virtDBusGDBusMethodData { @@ -201,7 +202,7 @@ virtDBusGDBusHandleMethod(GVariant *parameters, GDBusMessage *msg =3D g_dbus_method_invocation_get_message(invocation); GUnixFDList *inFDs =3D NULL; GVariant *outArgs =3D NULL; - GUnixFDList *outFDs =3D NULL; + g_autoptr(GUnixFDList) outFDs =3D NULL; g_autoptr(GError) error =3D NULL; =20 for (gint i =3D 0; data->methods[i].name; i++) { --=20 2.17.0 -- libvir-list mailing list libvir-list@redhat.com https://www.redhat.com/mailman/listinfo/libvir-list