[libvirt PATCH 10/10] tools: use g_autoptr for virCgroup

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

 



Signed-off-by: Pavel Hrdina <phrdina@xxxxxxxxxx>
---
 tools/virt-host-validate-common.c | 4 +---
 1 file changed, 1 insertion(+), 3 deletions(-)

diff --git a/tools/virt-host-validate-common.c b/tools/virt-host-validate-common.c
index 4d8ec38f88..9779eb7b3b 100644
--- a/tools/virt-host-validate-common.c
+++ b/tools/virt-host-validate-common.c
@@ -289,7 +289,7 @@ int virHostValidateCGroupControllers(const char *hvname,
                                      int controllers,
                                      virHostValidateLevel level)
 {
-    virCgroupPtr group = NULL;
+    g_autoptr(virCgroup) group = NULL;
     int ret = 0;
     size_t i;
 
@@ -315,8 +315,6 @@ int virHostValidateCGroupControllers(const char *hvname,
         }
     }
 
-    virCgroupFree(group);
-
     return ret;
 }
 #else /*  !__linux__ */
-- 
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