"virHashNew" cannot return NULL, yet we check for NULL in various places.
See
https://listman.redhat.com/archives/libvir-list/2021-July/msg00074.html.
Tim Wiederhake (10):
conf: Add AUTOPTR_CLEANUP_FUNC for virNWFilterBindingDef
virNWFilterBindingDefCopy: `virHashNew` cannot return NULL
virNWFilterBindingDefCopy: Use automatic memory management
virNWFilterBindingDefCopy: Remove superfluous `goto`s
virNWFilterBindingDefForNet: `virHashNew` cannot return NULL
virNWFilterBindingDefForNet: Use automatic memory management
virNWFilterBindingDefForNet: Remove superfluous `goto`s
virNWFilterBindingObjListNew: `virHashNew` cannot return NULL
virNWFilterBuildAll: `virHashNew` cannot return NULL
virNWFilterDHCPSnoopInit: `virHashNew` cannot return NULL
src/conf/domain_nwfilter.c | 15 ++++-----------
src/conf/virnwfilterbindingdef.c | 15 ++++-----------
src/conf/virnwfilterbindingdef.h | 2 ++
src/conf/virnwfilterbindingobjlist.c | 5 +----
src/nwfilter/nwfilter_dhcpsnoop.c | 17 -----------------
src/nwfilter/nwfilter_gentech_driver.c | 3 +--
6 files changed, 12 insertions(+), 45 deletions(-)
--
2.31.1