mirror of
https://gitlab.com/libvirt/libvirt.git
synced 2025-01-10 14:57:42 +00:00
qemu: Use VIR_AUTOPTR in qemuDomainSnapshotCreateDiskActive
Signed-off-by: Peter Krempa <pkrempa@redhat.com> Reviewed-by: Ján Tomko <jtomko@redhat.com>
This commit is contained in:
parent
ef6b88deef
commit
0f9a2a665b
@ -15235,7 +15235,7 @@ qemuDomainSnapshotCreateDiskActive(virQEMUDriverPtr driver,
|
||||
qemuDomainAsyncJob asyncJob)
|
||||
{
|
||||
qemuDomainObjPrivatePtr priv = vm->privateData;
|
||||
virJSONValuePtr actions = NULL;
|
||||
VIR_AUTOPTR(virJSONValue) actions = NULL;
|
||||
bool do_transaction = false;
|
||||
int ret = 0;
|
||||
size_t i;
|
||||
@ -15341,7 +15341,6 @@ qemuDomainSnapshotCreateDiskActive(virQEMUDriverPtr driver,
|
||||
|
||||
cleanup:
|
||||
qemuDomainSnapshotDiskDataFree(diskdata, snapdef->ndisks, driver, vm);
|
||||
virJSONValueFree(actions);
|
||||
|
||||
if (orig_err) {
|
||||
virSetError(orig_err);
|
||||
|
Loading…
Reference in New Issue
Block a user