]> git.ipfire.org Git - thirdparty/libvirt.git/commit
rpc: Refactor cleanup paths in virNetLibsshAuthenticatePassword
authorPeter Krempa <pkrempa@redhat.com>
Tue, 2 Apr 2019 15:35:42 +0000 (17:35 +0200)
committerPeter Krempa <pkrempa@redhat.com>
Tue, 9 Apr 2019 14:22:19 +0000 (16:22 +0200)
commitc3e1275b60205919f27d941cf6f1cfae7a53c3cb
tree591a8e39d34de5933e34b63fc2d65c838f4099d3
parent99582f240350833be64d65ddc7a13c27ce5403b1
rpc: Refactor cleanup paths in virNetLibsshAuthenticatePassword

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@redhat.com>
Reviewed-by: Ján Tomko <jtomko@redhat.com>
src/rpc/virnetlibsshsession.c