]> git.ipfire.org Git - thirdparty/libvirt.git/commitdiff
util: vircgroup: introduce g_autoptr() for virCgroup
authorPavel Hrdina <phrdina@redhat.com>
Tue, 22 Sep 2020 09:33:19 +0000 (11:33 +0200)
committerPavel Hrdina <phrdina@redhat.com>
Fri, 9 Oct 2020 14:24:38 +0000 (16:24 +0200)
Signed-off-by: Pavel Hrdina <phrdina@redhat.com>
Reviewed-by: Jonathon Jongsma <jjongsma@redhat.com>
src/util/vircgroup.h

index 691bec610fdec3ff911766284764e946dc5f8600..78770f5d3bda1f811db2e2b76a351c1152eb0553 100644 (file)
@@ -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,