mirror of
https://github.com/libvirt/libvirt.git
synced 2025-02-25 18:55:26 -06:00
vbox: replace VIR_FREE with g_free in all vir*Free() functions
Signed-off-by: Laine Stump <laine@redhat.com> Reviewed-by: Daniel Henrique Barboza <danielhb413@gmail.com>
This commit is contained in:
parent
5b31dec63d
commit
881bff1cc2
@ -502,14 +502,14 @@ virVboxSnapshotConfHardDiskFree(virVBoxSnapshotConfHardDiskPtr disk)
|
|||||||
if (!disk)
|
if (!disk)
|
||||||
return;
|
return;
|
||||||
|
|
||||||
VIR_FREE(disk->uuid);
|
g_free(disk->uuid);
|
||||||
VIR_FREE(disk->location);
|
g_free(disk->location);
|
||||||
VIR_FREE(disk->format);
|
g_free(disk->format);
|
||||||
VIR_FREE(disk->type);
|
g_free(disk->type);
|
||||||
for (i = 0; i < disk->nchildren; i++)
|
for (i = 0; i < disk->nchildren; i++)
|
||||||
virVboxSnapshotConfHardDiskFree(disk->children[i]);
|
virVboxSnapshotConfHardDiskFree(disk->children[i]);
|
||||||
VIR_FREE(disk->children);
|
g_free(disk->children);
|
||||||
VIR_FREE(disk);
|
g_free(disk);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
@ -523,11 +523,11 @@ virVBoxSnapshotConfMediaRegistryFree(virVBoxSnapshotConfMediaRegistryPtr mediaRe
|
|||||||
|
|
||||||
for (i = 0; i < mediaRegistry->ndisks; i++)
|
for (i = 0; i < mediaRegistry->ndisks; i++)
|
||||||
virVboxSnapshotConfHardDiskFree(mediaRegistry->disks[i]);
|
virVboxSnapshotConfHardDiskFree(mediaRegistry->disks[i]);
|
||||||
VIR_FREE(mediaRegistry->disks);
|
g_free(mediaRegistry->disks);
|
||||||
for (i = 0; i < mediaRegistry->notherMedia; i++)
|
for (i = 0; i < mediaRegistry->notherMedia; i++)
|
||||||
VIR_FREE(mediaRegistry->otherMedia[i]);
|
g_free(mediaRegistry->otherMedia[i]);
|
||||||
VIR_FREE(mediaRegistry->otherMedia);
|
g_free(mediaRegistry->otherMedia);
|
||||||
VIR_FREE(mediaRegistry);
|
g_free(mediaRegistry);
|
||||||
}
|
}
|
||||||
|
|
||||||
void
|
void
|
||||||
@ -538,16 +538,16 @@ virVBoxSnapshotConfSnapshotFree(virVBoxSnapshotConfSnapshotPtr snapshot)
|
|||||||
if (!snapshot)
|
if (!snapshot)
|
||||||
return;
|
return;
|
||||||
|
|
||||||
VIR_FREE(snapshot->uuid);
|
g_free(snapshot->uuid);
|
||||||
VIR_FREE(snapshot->name);
|
g_free(snapshot->name);
|
||||||
VIR_FREE(snapshot->timeStamp);
|
g_free(snapshot->timeStamp);
|
||||||
VIR_FREE(snapshot->description);
|
g_free(snapshot->description);
|
||||||
VIR_FREE(snapshot->hardware);
|
g_free(snapshot->hardware);
|
||||||
VIR_FREE(snapshot->storageController);
|
g_free(snapshot->storageController);
|
||||||
for (i = 0; i < snapshot->nchildren; i++)
|
for (i = 0; i < snapshot->nchildren; i++)
|
||||||
virVBoxSnapshotConfSnapshotFree(snapshot->children[i]);
|
virVBoxSnapshotConfSnapshotFree(snapshot->children[i]);
|
||||||
VIR_FREE(snapshot->children);
|
g_free(snapshot->children);
|
||||||
VIR_FREE(snapshot);
|
g_free(snapshot);
|
||||||
}
|
}
|
||||||
|
|
||||||
void
|
void
|
||||||
@ -556,17 +556,17 @@ virVBoxSnapshotConfMachineFree(virVBoxSnapshotConfMachinePtr machine)
|
|||||||
if (!machine)
|
if (!machine)
|
||||||
return;
|
return;
|
||||||
|
|
||||||
VIR_FREE(machine->uuid);
|
g_free(machine->uuid);
|
||||||
VIR_FREE(machine->name);
|
g_free(machine->name);
|
||||||
VIR_FREE(machine->currentSnapshot);
|
g_free(machine->currentSnapshot);
|
||||||
VIR_FREE(machine->snapshotFolder);
|
g_free(machine->snapshotFolder);
|
||||||
VIR_FREE(machine->lastStateChange);
|
g_free(machine->lastStateChange);
|
||||||
virVBoxSnapshotConfMediaRegistryFree(machine->mediaRegistry);
|
virVBoxSnapshotConfMediaRegistryFree(machine->mediaRegistry);
|
||||||
VIR_FREE(machine->hardware);
|
g_free(machine->hardware);
|
||||||
VIR_FREE(machine->extraData);
|
g_free(machine->extraData);
|
||||||
virVBoxSnapshotConfSnapshotFree(machine->snapshot);
|
virVBoxSnapshotConfSnapshotFree(machine->snapshot);
|
||||||
VIR_FREE(machine->storageController);
|
g_free(machine->storageController);
|
||||||
VIR_FREE(machine);
|
g_free(machine);
|
||||||
}
|
}
|
||||||
|
|
||||||
#define VBOX_SETTINGS_NS "http://www.innotek.de/VirtualBox-settings"
|
#define VBOX_SETTINGS_NS "http://www.innotek.de/VirtualBox-settings"
|
||||||
|
Loading…
Reference in New Issue
Block a user