From nobody Mon Feb 9 08:34:12 2026 Delivered-To: importer@patchew.org Received-SPF: pass (zohomail.com: domain of redhat.com designates 170.10.133.124 as permitted sender) client-ip=170.10.133.124; envelope-from=libvir-list-bounces@redhat.com; helo=us-smtp-delivery-124.mimecast.com; Authentication-Results: mx.zohomail.com; spf=pass (zohomail.com: domain of redhat.com designates 170.10.133.124 as permitted sender) smtp.mailfrom=libvir-list-bounces@redhat.com; dmarc=fail(p=none dis=none) header.from=gmail.com Return-Path: Received: from us-smtp-delivery-124.mimecast.com (us-smtp-delivery-124.mimecast.com [170.10.133.124]) by mx.zohomail.com with SMTPS id 1637244156905759.0676211583198; Thu, 18 Nov 2021 06:02:36 -0800 (PST) Received: from mimecast-mx01.redhat.com (mimecast-mx01.redhat.com [209.132.183.4]) by relay.mimecast.com with ESMTP with STARTTLS (version=TLSv1.2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id us-mta-486-8KmRKwPONh6E8tSxJvIY8g-1; Thu, 18 Nov 2021 09:02:33 -0500 Received: from smtp.corp.redhat.com (int-mx03.intmail.prod.int.phx2.redhat.com [10.5.11.13]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by mimecast-mx01.redhat.com (Postfix) with ESMTPS id A9F5B19253C6; Thu, 18 Nov 2021 14:02:25 +0000 (UTC) Received: from colo-mx.corp.redhat.com (colo-mx02.intmail.prod.int.phx2.redhat.com [10.5.11.21]) by smtp.corp.redhat.com (Postfix) with ESMTPS id 8D7465BAE0; Thu, 18 Nov 2021 14:02:25 +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 5748C4EA29; Thu, 18 Nov 2021 14:02:25 +0000 (UTC) Received: from smtp.corp.redhat.com (int-mx02.intmail.prod.int.rdu2.redhat.com [10.11.54.2]) by lists01.pubmisc.prod.ext.phx2.redhat.com (8.13.8/8.13.8) with ESMTP id 1AIE08L1010927 for ; Thu, 18 Nov 2021 09:00:09 -0500 Received: by smtp.corp.redhat.com (Postfix) id C1174404727A; Thu, 18 Nov 2021 14:00:08 +0000 (UTC) Received: from mimecast-mx02.redhat.com (mimecast04.extmail.prod.ext.rdu2.redhat.com [10.11.55.20]) by smtp.corp.redhat.com (Postfix) with ESMTPS id BD895404727D for ; Thu, 18 Nov 2021 14:00:08 +0000 (UTC) Received: from us-smtp-1.mimecast.com (us-smtp-delivery-1.mimecast.com [205.139.110.120]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mimecast-mx02.redhat.com (Postfix) with ESMTPS id A6EF110726A2 for ; Thu, 18 Nov 2021 14:00:08 +0000 (UTC) Received: from mail-qv1-f52.google.com (mail-qv1-f52.google.com [209.85.219.52]) by relay.mimecast.com with ESMTP with STARTTLS (version=TLSv1.2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id us-mta-514-2Vd8JDouNOK0VSTrtYj4rQ-1; Thu, 18 Nov 2021 09:00:06 -0500 Received: by mail-qv1-f52.google.com with SMTP id b17so4595685qvl.9 for ; Thu, 18 Nov 2021 06:00:06 -0800 (PST) Received: from rekt.ibmuc.com ([152.250.208.89]) by smtp.gmail.com with ESMTPSA id e7sm1542168qtx.72.2021.11.18.06.00.05 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 18 Nov 2021 06:00:06 -0800 (PST) X-MC-Unique: 8KmRKwPONh6E8tSxJvIY8g-1 X-MC-Unique: 2Vd8JDouNOK0VSTrtYj4rQ-1 X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references:mime-version:content-transfer-encoding; bh=PWbpPn56PHYTRGFbYqMOSf2cICZeAmmqxLYU6fuNZR8=; b=eFDxX4BvGX7UM+pPNDtb3srPB2KrGGDXiBU+YnnDrKDt9kkeF+HsdtoeBBy4fR4h18 1vN2fX0Iy+pvX/ovSPIGEcfqAY8IJ4mPfCEpTTnP3HTKSVbXP6uk1ALUTVFy1QY29TD9 ojYOJ3AdV69aNQRO1YBpXAvv3AVJK/sHYEe8b7/fhMoyTxwrt1gQ1i2uETFgTDWybhvl oErXcLDbLkeaPnnYgJAfTtMJfjYVl7norU5DhbxbUlRqS+Q6lm9un9ekzg2QEzP/7BIY Mo6kUmTcxZKFK2pE54iG0+X6S8VMQVS42t/9gYigFxsm9zzUDYkUfD+M/eCKyNbd/EBQ hldA== X-Gm-Message-State: AOAM532BDP6NCw6gfQYkTKywTPAuV+8OE3GV9745fjA4yKyGco7okAkA zvXaWOzdd9hVe7+7UqoR7Xpk/mhS+HXmnA== X-Google-Smtp-Source: ABdhPJx4fLTdmoAj+AVUJq6qaLvZ6YR77STolR/2uyqEDUie7hzlhEV8bDkw9dJJqiZzpRmfIwb4+w== X-Received: by 2002:a05:6214:300b:: with SMTP id ke11mr64629137qvb.42.1637244006387; Thu, 18 Nov 2021 06:00:06 -0800 (PST) From: Daniel Henrique Barboza To: libvir-list@redhat.com Subject: [PATCH 5/7] domain_conf.h: add autoptr cleanup func to virDomainXMLOptionPtr Date: Thu, 18 Nov 2021 10:59:42 -0300 Message-Id: <20211118135944.272979-6-danielhb413@gmail.com> In-Reply-To: <20211118135944.272979-1-danielhb413@gmail.com> References: <20211118135944.272979-1-danielhb413@gmail.com> MIME-Version: 1.0 X-Mimecast-Impersonation-Protect: Policy=CLT - Impersonation Protection Definition; Similar Internal Domain=false; Similar Monitored External Domain=false; Custom External Domain=false; Mimecast External Domain=false; Newly Observed Domain=false; Internal User Name=false; Custom Display Name List=false; Reply-to Address Mismatch=false; Targeted Threat Dictionary=false; Mimecast Threat Dictionary=false; Custom Threat Dictionary=false X-Scanned-By: MIMEDefang 2.84 on 10.11.54.2 X-loop: libvir-list@redhat.com Cc: danielh413@gmail.com 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: , Sender: libvir-list-bounces@redhat.com Errors-To: libvir-list-bounces@redhat.com X-Scanned-By: MIMEDefang 2.79 on 10.5.11.13 Authentication-Results: relay.mimecast.com; auth=pass smtp.auth=CUSA124A263 smtp.mailfrom=libvir-list-bounces@redhat.com X-Mimecast-Spam-Score: 0 X-Mimecast-Originator: redhat.com Content-Transfer-Encoding: quoted-printable X-ZM-MESSAGEID: 1637244200316100003 Content-Type: text/plain; charset="utf-8" This will enable code cleanups on code that still relies on virObjectUnref() this pointer manually. Signed-off-by: Daniel Henrique Barboza --- src/conf/domain_conf.h | 1 + 1 file changed, 1 insertion(+) diff --git a/src/conf/domain_conf.h b/src/conf/domain_conf.h index ab9a7d66f8..0ecd3803db 100644 --- a/src/conf/domain_conf.h +++ b/src/conf/domain_conf.h @@ -3214,6 +3214,7 @@ struct _virDomainXMLOption { /* Snapshot postparse callbacks */ virDomainMomentPostParseCallback momentPostParse; }; +G_DEFINE_AUTOPTR_CLEANUP_FUNC(virDomainXMLOption, virObjectUnref); =20 struct virDomainDefPostParseDeviceIteratorData { virDomainXMLOption *xmlopt; --=20 2.31.1