From nobody Wed Feb 11 05:11:56 2026 Delivered-To: importer@patchew.org Received-SPF: pass (zohomail.com: domain of redhat.com designates 170.10.129.124 as permitted sender) client-ip=170.10.129.124; envelope-from=libvir-list-bounces@redhat.com; helo=us-smtp-delivery-124.mimecast.com; Authentication-Results: mx.zohomail.com; dkim=pass; spf=pass (zohomail.com: domain of redhat.com designates 170.10.129.124 as permitted sender) smtp.mailfrom=libvir-list-bounces@redhat.com; dmarc=fail(p=quarantine dis=quarantine) header.from=huawei.com ARC-Seal: i=1; a=rsa-sha256; t=1673263624; cv=none; d=zohomail.com; s=zohoarc; b=IdxnAVttxwW8QqcrmofZsK9bPJbyvwDDqMW3vbyKFw4tH9rSPLFELnn7cIcZmMOzIuZWxHrFngT+wpobZ28A9OaAACzTP9w0eciq8xLuacPWdou6R+9CjXLdLB3Snrj59FOWJRod681wAqDzIyW6FbJ+dxXS7Kd1hNfq6Bdbm+g= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zohomail.com; s=zohoarc; t=1673263624; h=Content-Type:Content-Transfer-Encoding:Cc:Date:From:In-Reply-To:List-Subscribe:List-Post:List-Id:List-Archive:List-Help:List-Unsubscribe:MIME-Version:Message-ID:References:Sender:Subject:To; bh=44ErjFSpxa+IC4Qx8+ZYac1AB2v9Jqi8vuSe6GA+z3k=; b=P097h+ffGIdA9vYzta7RsRU3hgmzwwEeRkt31aNm6llvF9WlwmodvpfU4ae2TYSLxKjOGHP7gJUrT/vKuNsIiNedc65X6QoSSIPVdgfl+Y2zMLV7P6tQkyZQTwqOA/TnVQHdlk+TOuTlBEYDJNnZXseXlr2ShovCV+2ih83sw6U= ARC-Authentication-Results: i=1; mx.zohomail.com; dkim=pass; spf=pass (zohomail.com: domain of redhat.com designates 170.10.129.124 as permitted sender) smtp.mailfrom=libvir-list-bounces@redhat.com; dmarc=fail header.from= (p=quarantine dis=quarantine) Return-Path: Received: from us-smtp-delivery-124.mimecast.com (us-smtp-delivery-124.mimecast.com [170.10.129.124]) by mx.zohomail.com with SMTPS id 1673263624508368.2756379934633; Mon, 9 Jan 2023 03:27:04 -0800 (PST) Received: from mimecast-mx02.redhat.com (mimecast-mx02.redhat.com [66.187.233.88]) by relay.mimecast.com with ESMTP with STARTTLS (version=TLSv1.2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id us-mta-611-GtC8k47-PmuUgDzKI_0Ceg-1; Mon, 09 Jan 2023 06:26:13 -0500 Received: from smtp.corp.redhat.com (int-mx03.intmail.prod.int.rdu2.redhat.com [10.11.54.3]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by mimecast-mx02.redhat.com (Postfix) with ESMTPS id 8E46388B7B8; Mon, 9 Jan 2023 11:26:11 +0000 (UTC) Received: from mm-prod-listman-01.mail-001.prod.us-east-1.aws.redhat.com (unknown [10.30.29.100]) by smtp.corp.redhat.com (Postfix) with ESMTP id 7245E1121320; Mon, 9 Jan 2023 11:26:11 +0000 (UTC) Received: from mm-prod-listman-01.mail-001.prod.us-east-1.aws.redhat.com (localhost [IPv6:::1]) by mm-prod-listman-01.mail-001.prod.us-east-1.aws.redhat.com (Postfix) with ESMTP id 05CDD1947B83; Mon, 9 Jan 2023 11:26:11 +0000 (UTC) Received: from smtp.corp.redhat.com (int-mx07.intmail.prod.int.rdu2.redhat.com [10.11.54.7]) by mm-prod-listman-01.mail-001.prod.us-east-1.aws.redhat.com (Postfix) with ESMTP id A53351947B8C for ; Mon, 9 Jan 2023 11:26:09 +0000 (UTC) Received: by smtp.corp.redhat.com (Postfix) id 7B334140EBF6; Mon, 9 Jan 2023 11:26:09 +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 732F0140EBF5 for ; Mon, 9 Jan 2023 11:26:09 +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 53F4F101A521 for ; Mon, 9 Jan 2023 11:26:09 +0000 (UTC) Received: from szxga02-in.huawei.com (szxga02-in.huawei.com [45.249.212.188]) by relay.mimecast.com with ESMTP with STARTTLS (version=TLSv1.2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id us-mta-191-CGpziODGOJG2oVQ7Um2mwQ-1; Mon, 09 Jan 2023 06:26:04 -0500 Received: from dggpeml500022.china.huawei.com (unknown [172.30.72.53]) by szxga02-in.huawei.com (SkyGuard) with ESMTP id 4NrBRS1cYjzRr33; Mon, 9 Jan 2023 19:24:20 +0800 (CST) Received: from localhost.localdomain (10.175.124.27) by dggpeml500022.china.huawei.com (7.185.36.66) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2375.34; Mon, 9 Jan 2023 19:25:59 +0800 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1673263623; h=from:from:sender:sender:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc:cc:mime-version:mime-version: content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references:list-id:list-help: list-unsubscribe:list-subscribe:list-post; bh=44ErjFSpxa+IC4Qx8+ZYac1AB2v9Jqi8vuSe6GA+z3k=; b=gs5KGUvI/a3B8oIro6LfRgYzcAulDhw5QH+ITiDYmPXlnkKWsLJM4ADO2NP5i7WJUJxlL8 RLhtRZ7k/xevLDSoXL/vPy3DnfVQiytASZVeABhfwY3+bLRiq5TCddkCLpg8NHyHcnhuId 1Bc41dU7ndTbqdLrKrTlQVnT+pPK//E= X-MC-Unique: GtC8k47-PmuUgDzKI_0Ceg-1 X-Original-To: libvir-list@listman.corp.redhat.com X-MC-Unique: CGpziODGOJG2oVQ7Um2mwQ-1 From: Jiang Jiacheng To: , , , Subject: [PATCH 1/3] conf: define g_autoptr for virNWFilterDef and virNWFilterRuleDef Date: Mon, 9 Jan 2023 19:19:29 +0800 Message-ID: <20230109111931.2401851-2-jiangjiacheng@huawei.com> In-Reply-To: <20230109111931.2401851-1-jiangjiacheng@huawei.com> References: <20230109111931.2401851-1-jiangjiacheng@huawei.com> MIME-Version: 1.0 X-Originating-IP: [10.175.124.27] X-ClientProxiedBy: dggems701-chm.china.huawei.com (10.3.19.178) To dggpeml500022.china.huawei.com (7.185.36.66) X-CFilter-Loop: Reflected 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 3.1 on 10.11.54.7 X-BeenThere: libvir-list@redhat.com X-Mailman-Version: 2.1.29 Precedence: list List-Id: Development discussions about the libvirt library & tools List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: yubihong@huawei.com, zhengchuan@huawei.com, linyilu@huawei.com, jiangjiacheng@huawei.com, xiexiangyou@huawei.com Errors-To: libvir-list-bounces@redhat.com Sender: "libvir-list" X-Scanned-By: MIMEDefang 3.1 on 10.11.54.3 X-Mimecast-Spam-Score: 0 X-Mimecast-Originator: redhat.com Content-Transfer-Encoding: quoted-printable X-ZohoMail-DKIM: pass (identity @redhat.com) X-ZM-MESSAGEID: 1673263626438100003 Content-Type: text/plain; charset="utf-8" Signed-off-by: Jiang Jiacheng --- src/conf/nwfilter_conf.h | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/conf/nwfilter_conf.h b/src/conf/nwfilter_conf.h index 1a38e4198c..7c09b3bcb9 100644 --- a/src/conf/nwfilter_conf.h +++ b/src/conf/nwfilter_conf.h @@ -522,9 +522,11 @@ struct _virNWFilterDef { =20 void virNWFilterRuleDefFree(virNWFilterRuleDef *def); +G_DEFINE_AUTOPTR_CLEANUP_FUNC(virNWFilterRuleDef, virNWFilterRuleDefFree); =20 void virNWFilterDefFree(virNWFilterDef *def); +G_DEFINE_AUTOPTR_CLEANUP_FUNC(virNWFilterDef, virNWFilterDefFree); =20 int virNWFilterTriggerRebuild(void); --=20 2.33.0