[libvirt PATCH 00/10] virHashNew refactorings - part II

Peter Krempa pkrempa at redhat.com
Tue Jul 13 10:24:36 UTC 2021


On Fri, Jul 09, 2021 at 10:27:29 +0200, Tim Wiederhake wrote:
> "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):
>   virNWFilterCreateVarsFrom: `virHashNew` cannot return NULL
>   virNWFilterCreateVarsFrom: Use automatic memory management
>   virNWFilterCreateVarsFrom: Remove superfluous `goto`s
>   virNWFilterRuleDefToRuleInst: `virHashNew` cannot return NULL
>   iptablesPrivateChainCreate: `virHashNew` cannot return NULL
>   iptablesPrivateChainCreate: Use automatic memory management
>   iptablesPrivateChainCreate: Remove superfluous `goto`s
>   qemuMonitorGetMemoryDeviceInfo: Assign hash table only on success
>   qemuMonitorGetMemoryDeviceInfo: Use automatic memory management
>   qemuMonitorGetMemoryDeviceInfo: `virHashNew` cannot return NULL

Series:

Reviewed-by: Peter Krempa <pkrempa at redhat.com>




More information about the libvir-list mailing list