]> git.ipfire.org Git - thirdparty/libvirt.git/commitdiff
locking: convert VIR_FREE to g_free in other functions that free their arg
authorLaine Stump <laine@redhat.com>
Tue, 9 Feb 2021 17:24:34 +0000 (12:24 -0500)
committerLaine Stump <laine@redhat.com>
Fri, 12 Feb 2021 17:10:38 +0000 (12:10 -0500)
Signed-off-by: Laine Stump <laine@redhat.com>
Reviewed-by: Michal Privoznik <mprivozn@redhat.com>
src/locking/lock_manager.c

index db724eb30fadd97351295a32b13c3d237bccd46a..90ec5cdfbe9b1c1802ad929834e56976ee90f200 100644 (file)
@@ -245,8 +245,8 @@ void virLockManagerPluginUnref(virLockManagerPluginPtr plugin)
         return;
     }
 
-    VIR_FREE(plugin->name);
-    VIR_FREE(plugin);
+    g_free(plugin->name);
+    g_free(plugin);
 }
 #else /* !WITH_DLFCN_H */
 void virLockManagerPluginUnref(virLockManagerPluginPtr plugin G_GNUC_UNUSED)