mirror of https://gitee.com/openkylin/libvirt.git
syntax: virPCIDeviceFree is also a NOP for NULL args
add it to the syntax-check list and fix the one offending caller.
This commit is contained in:
parent
c302130277
commit
d80d0d5d40
1
cfg.mk
1
cfg.mk
|
@ -165,6 +165,7 @@ useless_free_options = \
|
|||
--name=virNodeDeviceObjFree \
|
||||
--name=virObjectUnref \
|
||||
--name=virObjectFreeCallback \
|
||||
--name=virPCIDeviceFree \
|
||||
--name=virSecretDefFree \
|
||||
--name=virStorageEncryptionFree \
|
||||
--name=virStorageEncryptionSecretFree \
|
||||
|
|
|
@ -1671,8 +1671,7 @@ virPCIDeviceListDel(virPCIDeviceListPtr list,
|
|||
virPCIDevicePtr dev)
|
||||
{
|
||||
virPCIDevicePtr ret = virPCIDeviceListSteal(list, dev);
|
||||
if (ret)
|
||||
virPCIDeviceFree(ret);
|
||||
virPCIDeviceFree(ret);
|
||||
}
|
||||
|
||||
int
|
||||
|
|
Loading…
Reference in New Issue