]> git.ipfire.org Git - thirdparty/libvirt.git/commit
virFDStreamMsgQueuePush: Clear pointer to passed message
authorMichal Privoznik <mprivozn@redhat.com>
Tue, 7 Jul 2020 11:08:46 +0000 (13:08 +0200)
committerMichal Privoznik <mprivozn@redhat.com>
Thu, 20 Aug 2020 11:51:02 +0000 (13:51 +0200)
commit211ea0d20ce0c57f4dd233e552bc4c3909cc3190
tree80007e5207364441b853de937fae4c6caedf692b
parent8d5cae317eb11ae990e295c9dc967bb708389d75
virFDStreamMsgQueuePush: Clear pointer to passed message

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@redhat.com>
Reviewed-by: Peter Krempa <pkrempa@redhat.com>
src/util/virfdstream.c