mirror of
https://gitlab.com/libvirt/libvirt.git
synced 2025-01-22 04:25:18 +00:00
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,7 +1671,6 @@ virPCIDeviceListDel(virPCIDeviceListPtr list,
|
||||
virPCIDevicePtr dev)
|
||||
{
|
||||
virPCIDevicePtr ret = virPCIDeviceListSteal(list, dev);
|
||||
if (ret)
|
||||
virPCIDeviceFree(ret);
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user