From nobody Sat Feb 7 08:43:55 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 1637245263553312.736589905728; Thu, 18 Nov 2021 06:21:03 -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-286-OWvHgZyROUCbEZH2KZbxlw-1; Thu, 18 Nov 2021 09:21:00 -0500 Received: from smtp.corp.redhat.com (int-mx04.intmail.prod.int.phx2.redhat.com [10.5.11.14]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by mimecast-mx01.redhat.com (Postfix) with ESMTPS id 42D3887D545; Thu, 18 Nov 2021 14:20:49 +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 220F05D9DE; Thu, 18 Nov 2021 14:20:49 +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 E2458180BAD1; Thu, 18 Nov 2021 14:20:48 +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 1AIEKl5m013016 for ; Thu, 18 Nov 2021 09:20:47 -0500 Received: by smtp.corp.redhat.com (Postfix) id F1798404727D; Thu, 18 Nov 2021 14:20:46 +0000 (UTC) Received: from mimecast-mx02.redhat.com (mimecast05.extmail.prod.ext.rdu2.redhat.com [10.11.55.21]) by smtp.corp.redhat.com (Postfix) with ESMTPS id EDC704047279 for ; Thu, 18 Nov 2021 14:20:46 +0000 (UTC) Received: from us-smtp-1.mimecast.com (us-smtp-delivery-1.mimecast.com [207.211.31.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 D5B51805F4A for ; Thu, 18 Nov 2021 14:20:46 +0000 (UTC) Received: from mail-ua1-f49.google.com (mail-ua1-f49.google.com [209.85.222.49]) by relay.mimecast.com with ESMTP with STARTTLS (version=TLSv1.2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id us-mta-11-bmMX69PTPB2SjG6rlVIdZA-1; Thu, 18 Nov 2021 09:20:45 -0500 Received: by mail-ua1-f49.google.com with SMTP id n6so14041889uak.1 for ; Thu, 18 Nov 2021 06:20:45 -0800 (PST) Received: from rekt.ibmuc.com ([152.250.208.89]) by smtp.gmail.com with ESMTPSA id b8sm1734306vsl.19.2021.11.18.06.20.43 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 18 Nov 2021 06:20:44 -0800 (PST) X-MC-Unique: OWvHgZyROUCbEZH2KZbxlw-1 X-MC-Unique: bmMX69PTPB2SjG6rlVIdZA-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=0b6+MqVvDNgybvmmJ0hYq0PlUiT2wmiSAxB2WeX6Q5A+iCTVT+fXpYiiQHhu8s4LAf AZiuUB1olsTIKRz7k69OfKJjIU4OkplONbLLWladNz00nSKmOEECOyMnwblkpTgE9RpX 2RchSMynZc99/zdcTG39b3t5sI2UIjal36XQ3hjWBgKczisvDUx3nyZGBl9igB3Yb9FL wFZ1MvvQ+6kGZA2SMi8eEz0A8WIFX1j1SjDtNkXQKDiJX1PVGeP1zLyZLDQFRmWt/crS l5DUXe5We0F+Xtu6t5pS4HRE4jbJTtY66JZjl/hV6iC6G/DyjWdHsOCTZ/hFBmmb41i7 iP9A== X-Gm-Message-State: AOAM532eeVzAUZmyYH5C4cJss17rj9NAlZA/hjmMdXRcssWOJud1+ify XM+x0RJxcHMRULN3we+bhcj0LvWGQoUIUA== X-Google-Smtp-Source: ABdhPJz8zRTbfofAbZBJCk2Tn0BMUq/UgAFUTmtxN3LBalnCzSiZbWw4O+0ZjNR4I4R1tzqaIFxQ9Q== X-Received: by 2002:a67:f1d8:: with SMTP id v24mr81946783vsm.8.1637245244601; Thu, 18 Nov 2021 06:20:44 -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 11:20:22 -0300 Message-Id: <20211118142024.275704-6-danielhb413@gmail.com> In-Reply-To: <20211118142024.275704-1-danielhb413@gmail.com> References: <20211118142024.275704-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: danielhb413@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.14 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: 1637245265295100001 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 Reviewed-by: J=C3=A1n Tomko --- 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