[PATCH 2/2] virnetsocket: Use g_auto* more

Ján Tomko jtomko at redhat.com
Fri Oct 15 13:05:29 UTC 2021


On a Friday in 2021, Michal Privoznik wrote:
>There are few functions in virnetsocket.c where an object/memory
>is freed by explicit call. Use g_autoptr()/g_autofree/VIR_AUTOCLOSE
>to do that automatically.
>
>Signed-off-by: Michal Privoznik <mprivozn at redhat.com>
>---
> src/rpc/virnetsocket.c | 57 +++++++++++++++---------------------------
> 1 file changed, 20 insertions(+), 37 deletions(-)
>

Reviewed-by: Ján Tomko <jtomko at redhat.com>

Jano
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 488 bytes
Desc: not available
URL: <http://listman.redhat.com/archives/libvir-list/attachments/20211015/81cb2e9e/attachment-0001.sig>


More information about the libvir-list mailing list