mirror of
https://gitlab.com/libvirt/libvirt.git
synced 2025-03-20 07:59:00 +00:00
qemuDomainUpdateMemoryDeviceInfo: Automatically free temporary GHashTable
Signed-off-by: Peter Krempa <pkrempa@redhat.com> Reviewed-by: Ján Tomko <jtomko@redhat.com> Reviewed-by: Martin Kletzander <mkletzan@redhat.com>
This commit is contained in:
parent
f7d9dd8ff8
commit
e34a532229
@ -8187,7 +8187,7 @@ qemuDomainUpdateMemoryDeviceInfo(virQEMUDriver *driver,
|
||||
int asyncJob)
|
||||
{
|
||||
qemuDomainObjPrivate *priv = vm->privateData;
|
||||
GHashTable *meminfo = NULL;
|
||||
g_autoptr(GHashTable) meminfo = NULL;
|
||||
int rc;
|
||||
size_t i;
|
||||
|
||||
@ -8233,7 +8233,6 @@ qemuDomainUpdateMemoryDeviceInfo(virQEMUDriver *driver,
|
||||
}
|
||||
}
|
||||
|
||||
virHashFree(meminfo);
|
||||
return 0;
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user