mirror of
https://gitlab.com/libvirt/libvirt.git
synced 2025-02-21 19:02:25 +00:00
testQemuMonitorJSONqemuMonitorJSONGetAllBlockStatsInfo: 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
531a1fa84f
commit
efb30a055c
@ -1536,7 +1536,7 @@ testQemuMonitorJSONqemuMonitorJSONGetAllBlockStatsInfo(const void *opaque)
|
||||
{
|
||||
const testGenericData *data = opaque;
|
||||
virDomainXMLOption *xmlopt = data->xmlopt;
|
||||
GHashTable *blockstats = NULL;
|
||||
g_autoptr(GHashTable) blockstats = NULL;
|
||||
qemuBlockStats *stats;
|
||||
int ret = -1;
|
||||
g_autoptr(qemuMonitorTest) test = NULL;
|
||||
@ -1688,7 +1688,6 @@ testQemuMonitorJSONqemuMonitorJSONGetAllBlockStatsInfo(const void *opaque)
|
||||
#undef CHECK0FULL
|
||||
|
||||
cleanup:
|
||||
virHashFree(blockstats);
|
||||
return ret;
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user