mirror of
https://gitlab.com/libvirt/libvirt.git
synced 2025-01-22 04:25:18 +00:00
testQemuMonitorJSONqemuMonitorJSONGetBlockInfo: Use automatic memory management
Signed-off-by: Tim Wiederhake <twiederh@redhat.com> Reviewed-by: Peter Krempa <pkrempa@redhat.com>
This commit is contained in:
parent
5866c30c40
commit
cca44e5298
@ -1461,8 +1461,8 @@ testQemuMonitorJSONqemuMonitorJSONGetBlockInfo(const void *opaque)
|
||||
const testGenericData *data = opaque;
|
||||
virDomainXMLOption *xmlopt = data->xmlopt;
|
||||
int ret = -1;
|
||||
GHashTable *blockDevices = NULL;
|
||||
GHashTable *expectedBlockDevices = NULL;
|
||||
g_autoptr(GHashTable) blockDevices = NULL;
|
||||
g_autoptr(GHashTable) expectedBlockDevices = NULL;
|
||||
struct qemuDomainDiskInfo *info;
|
||||
g_autoptr(qemuMonitorTest) test = NULL;
|
||||
|
||||
@ -1526,8 +1526,6 @@ testQemuMonitorJSONqemuMonitorJSONGetBlockInfo(const void *opaque)
|
||||
|
||||
ret = 0;
|
||||
cleanup:
|
||||
virHashFree(blockDevices);
|
||||
virHashFree(expectedBlockDevices);
|
||||
return ret;
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user