[PATCH 1/2] conf: define g_autoptr for virNWFilterDef and virNWFilterRuleDef

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Signed-off-by: Jiang Jiacheng <jiangjiacheng@xxxxxxxxxx>
---
 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 {
 
 void
 virNWFilterRuleDefFree(virNWFilterRuleDef *def);
+G_DEFINE_AUTOPTR_CLEANUP_FUNC(virNWFilterRuleDef, virNWFilterRuleDefFree);
 
 void
 virNWFilterDefFree(virNWFilterDef *def);
+G_DEFINE_AUTOPTR_CLEANUP_FUNC(virNWFilterDef, virNWFilterDefFree);
 
 int
 virNWFilterTriggerRebuild(void);
-- 
2.33.0





[Index of Archives]     [Virt Tools]     [Libvirt Users]     [Lib OS Info]     [Fedora Users]     [Fedora Desktop]     [Fedora SELinux]     [Big List of Linux Books]     [Yosemite News]     [KDE Users]     [Fedora Tools]

  Powered by Linux