In the patch converting block stats to objects in
58aa005f3e9 I forgot
to change the allocation of the hash table in qemumonitorjsontest which
doesn't use the wrapper. This problem didn't manifest itself with newer
glib versions.
Use 'g_object_unref' instead of 'g_free'.
Fixes: 58aa005f3e9
Signed-off-by: Peter Krempa <pkrempa@redhat.com>
{
const testGenericData *data = opaque;
virDomainXMLOption *xmlopt = data->xmlopt;
- g_autoptr(GHashTable) blockstats = virHashNew(g_free);
+ g_autoptr(GHashTable) blockstats = virHashNew(g_object_unref);
qemuBlockStats *stats;
g_autoptr(qemuMonitorTest) test = NULL;