mirror of
https://gitlab.com/libvirt/libvirt.git
synced 2025-02-22 19:32:19 +00:00
Fix two leaks in test driver
* src/test/test_driver.c: Fix leak of vcpu info, and nodedevice info
This commit is contained in:
parent
db810b1148
commit
874990dc2c
@ -149,6 +149,7 @@ static void testDomainObjPrivateFree(void *data)
|
||||
{
|
||||
testDomainObjPrivatePtr priv = data;
|
||||
|
||||
VIR_FREE(priv->vcpu_infos);
|
||||
VIR_FREE(priv->cpumaps);
|
||||
VIR_FREE(priv);
|
||||
}
|
||||
@ -1163,6 +1164,7 @@ static int testClose(virConnectPtr conn)
|
||||
testDriverLock(privconn);
|
||||
virCapabilitiesFree(privconn->caps);
|
||||
virDomainObjListDeinit(&privconn->domains);
|
||||
virNodeDeviceObjListFree(&privconn->devs);
|
||||
virNetworkObjListFree(&privconn->networks);
|
||||
virInterfaceObjListFree(&privconn->ifaces);
|
||||
virStoragePoolObjListFree(&privconn->pools);
|
||||
|
Loading…
x
Reference in New Issue
Block a user