mirror of
https://gitlab.com/libvirt/libvirt.git
synced 2025-01-21 20:15:17 +00:00
testQemuMonitorJSONqemuMonitorJSONGetAllBlockStatsInfo: virHashNew
cannot return NULL
Signed-off-by: Tim Wiederhake <twiederh@redhat.com> Reviewed-by: Peter Krempa <pkrempa@redhat.com>
This commit is contained in:
parent
6356ff86ae
commit
5866c30c40
@ -1536,7 +1536,7 @@ testQemuMonitorJSONqemuMonitorJSONGetAllBlockStatsInfo(const void *opaque)
|
||||
{
|
||||
const testGenericData *data = opaque;
|
||||
virDomainXMLOption *xmlopt = data->xmlopt;
|
||||
g_autoptr(GHashTable) blockstats = NULL;
|
||||
g_autoptr(GHashTable) blockstats = virHashNew(g_free);
|
||||
qemuBlockStats *stats;
|
||||
g_autoptr(qemuMonitorTest) test = NULL;
|
||||
|
||||
@ -1630,9 +1630,6 @@ testQemuMonitorJSONqemuMonitorJSONGetAllBlockStatsInfo(const void *opaque)
|
||||
if (!(test = qemuMonitorTestNewSchema(xmlopt, data->schema)))
|
||||
return -1;
|
||||
|
||||
if (!(blockstats = virHashNew(g_free)))
|
||||
return -1;
|
||||
|
||||
if (qemuMonitorTestAddItem(test, "query-blockstats", reply) < 0)
|
||||
return -1;
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user