mirror of https://gitee.com/openkylin/libvirt.git
locking: convert VIR_FREE to g_free in other functions that free their arg
Signed-off-by: Laine Stump <laine@redhat.com> Reviewed-by: Michal Privoznik <mprivozn@redhat.com>
This commit is contained in:
parent
11c48fe6eb
commit
f42be9ae48
|
@ -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)
|
||||
|
|
Loading…
Reference in New Issue