mirror of
https://gitlab.com/libvirt/libvirt.git
synced 2024-12-31 18:15:25 +00:00
qemu: Rename qemuDomainSnapshotDiskDataFree to qemuDomainSnapshotDiskDataCleanup
In commit cbb4d229de
I named the function with 'free' suffix, but at
that time it already did some non-freeing tasks. Rename it to make it
obvious that it's not just memory managemet.
Signed-off-by: Peter Krempa <pkrempa@redhat.com>
Reviewed-by: Ján Tomko <jtomko@redhat.com>
This commit is contained in:
parent
f34397e51c
commit
acda184236
@ -15035,10 +15035,10 @@ typedef qemuDomainSnapshotDiskData *qemuDomainSnapshotDiskDataPtr;
|
||||
|
||||
|
||||
static void
|
||||
qemuDomainSnapshotDiskDataFree(qemuDomainSnapshotDiskDataPtr data,
|
||||
size_t ndata,
|
||||
virQEMUDriverPtr driver,
|
||||
virDomainObjPtr vm)
|
||||
qemuDomainSnapshotDiskDataCleanup(qemuDomainSnapshotDiskDataPtr data,
|
||||
size_t ndata,
|
||||
virQEMUDriverPtr driver,
|
||||
virDomainObjPtr vm)
|
||||
{
|
||||
size_t i;
|
||||
|
||||
@ -15145,7 +15145,7 @@ qemuDomainSnapshotDiskDataCollect(virQEMUDriverPtr driver,
|
||||
ret = 0;
|
||||
|
||||
cleanup:
|
||||
qemuDomainSnapshotDiskDataFree(data, ndata, driver, vm);
|
||||
qemuDomainSnapshotDiskDataCleanup(data, ndata, driver, vm);
|
||||
return ret;
|
||||
}
|
||||
|
||||
@ -15322,7 +15322,7 @@ qemuDomainSnapshotCreateDiskActive(virQEMUDriverPtr driver,
|
||||
ret = -1;
|
||||
|
||||
cleanup:
|
||||
qemuDomainSnapshotDiskDataFree(diskdata, ndiskdata, driver, vm);
|
||||
qemuDomainSnapshotDiskDataCleanup(diskdata, ndiskdata, driver, vm);
|
||||
virErrorRestore(&orig_err);
|
||||
|
||||
return ret;
|
||||
|
Loading…
Reference in New Issue
Block a user