[PATCH v2 01/17] virfdstream: Use g_autofree in virFDStreamThreadDoRead()

Peter Krempa pkrempa at redhat.com
Tue Aug 18 14:30:23 UTC 2020


On Tue, Jul 07, 2020 at 21:46:19 +0200, Michal Privoznik wrote:
> The buffer that allocated in the virFDStreamThreadDoRead() can be
> automatically freed, or if saved into the message structure it
> can be stolen.
> 
> Signed-off-by: Michal Privoznik <mprivozn at redhat.com>
> ---
>  src/util/virfdstream.c | 6 ++----
>  1 file changed, 2 insertions(+), 4 deletions(-)

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




More information about the libvir-list mailing list