Signed-off-by: Tim Wiederhake <twiederh(a)redhat.com>
---
tests/qemumonitorjsontest.c | 3 +--
1 file changed, 1 insertion(+), 2 deletions(-)
diff --git a/tests/qemumonitorjsontest.c b/tests/qemumonitorjsontest.c
index e6746b806f..e993c30c97 100644
--- a/tests/qemumonitorjsontest.c
+++ b/tests/qemumonitorjsontest.c
@@ -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;
}
--
2.31.1