[PATCH v2 02/17] virFDStreamMsgQueuePush: Clear pointer to passed message

Peter Krempa pkrempa at redhat.com
Thu Aug 20 08:19:08 UTC 2020


On Tue, Jul 07, 2020 at 21:46:20 +0200, Michal Privoznik wrote:
> All callers of virFDStreamMsgQueuePush() have the same pattern:
> they explicitly set @msg passed to NULL to avoid freeing it later
> on. Well, the function can take address of the pointer and clear
> it for them.
> 
> Signed-off-by: Michal Privoznik <mprivozn at redhat.com>
> ---
>  src/util/virfdstream.c | 13 +++++--------
>  1 file changed, 5 insertions(+), 8 deletions(-)

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




More information about the libvir-list mailing list