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

2020-08-18 Thread Peter Krempa
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 > --- > src/util/virfdstream.c | 6 ++ >

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

2020-07-07 Thread Michal Privoznik
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 --- src/util/virfdstream.c | 6 ++ 1 file changed, 2 insertions(+), 4 deletions(-) diff --git