[libvirt PATCH 04/10] util: vircgroup: introduce g_autoptr() for virCgroup

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

 



Signed-off-by: Pavel Hrdina <phrdina@xxxxxxxxxx>
---
 src/util/vircgroup.h | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/src/util/vircgroup.h b/src/util/vircgroup.h
index 691bec610f..78770f5d3b 100644
--- a/src/util/vircgroup.h
+++ b/src/util/vircgroup.h
@@ -109,6 +109,8 @@ bool virCgroupNewIgnoreError(void);
 
 void virCgroupFree(virCgroupPtr group);
 
+G_DEFINE_AUTOPTR_CLEANUP_FUNC(virCgroup, virCgroupFree);
+
 bool virCgroupHasController(virCgroupPtr cgroup, int controller);
 int virCgroupPathOfController(virCgroupPtr group,
                               unsigned int controller,
-- 
2.26.2




[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