mirror of
https://github.com/libvirt/libvirt.git
synced 2025-02-25 18:55:26 -06:00
Turn virCapabilities into a virObject
To enable virCapabilities instances to be reference counted, turn it into a virObject. All cases of virCapabilitiesFree turn into virObjectUnref Signed-off-by: Daniel P. Berrange <berrange@redhat.com>
This commit is contained in:
@@ -44,7 +44,7 @@ vmwareFreeDriver(struct vmware_driver *driver)
|
||||
|
||||
virMutexDestroy(&driver->lock);
|
||||
virObjectUnref(driver->domains);
|
||||
virCapabilitiesFree(driver->caps);
|
||||
virObjectUnref(driver->caps);
|
||||
VIR_FREE(driver);
|
||||
}
|
||||
|
||||
@@ -133,7 +133,7 @@ cleanup:
|
||||
return caps;
|
||||
|
||||
error:
|
||||
virCapabilitiesFree(caps);
|
||||
virObjectUnref(caps);
|
||||
goto cleanup;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user