Signed-off-by: Tim Wiederhake <twiederh@redhat.com>
Reviewed-by: Peter Krempa <pkrempa@redhat.com>
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;
ret = 0;
cleanup:
- virHashFree(blockDevices);
- virHashFree(expectedBlockDevices);
return ret;
}