[libvirt] [PATCH] rpc: Refactor cleanup paths in virNetLibsshAuthenticatePassword

Ján Tomko jtomko at redhat.com
Tue Apr 9 14:10:07 UTC 2019


On Tue, Apr 02, 2019 at 05:37:40PM +0200, Peter Krempa wrote:
>Now that the memory disposal is handled automatically we can simplify
>the cleanup paths. In this case it's not as simple as sometimes the
>value of the called function is returned.
>
>While at it fix the initialization value of the returned variable.
>
>Signed-off-by: Peter Krempa <pkrempa at redhat.com>
>---
> src/rpc/virnetlibsshsession.c | 33 ++++++++++++---------------------
> 1 file changed, 12 insertions(+), 21 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/20190409/02038cd0/attachment-0001.sig>


More information about the libvir-list mailing list