crypto: use auto cleanup for many stack variables
commit57b9f113fce2a2231a47e9295c1d461e9ff7f0f7
authorDaniel P. Berrangé <berrange@redhat.com>
Tue, 23 Jul 2019 15:22:36 +0000 (23 16:22 +0100)
committerDaniel P. Berrangé <berrange@redhat.com>
Thu, 22 Aug 2019 09:56:57 +0000 (22 10:56 +0100)
tree5916f14bbe28782fe1da06544bfe9e58f6867e4d
parent133cf1e5b1a9a3cc6f1e47e5edad67d000259dd6
crypto: use auto cleanup for many stack variables

Simplify cleanup paths by using glib's auto cleanup macros for stack
variables, allowing several goto jumps / labels to be eliminated.

Reviewed-by: Marc-André Lureau <marcandre.lureau@redhat.com>
Reviewed-by: Stefan Hajnoczi <stefanha@redhat.com>
Signed-off-by: Daniel P. Berrangé <berrange@redhat.com>
crypto/afsplit.c
crypto/block-luks.c
crypto/block.c
crypto/pbkdf.c
crypto/secret.c
crypto/tlscredsanon.c
crypto/tlscredspsk.c
crypto/tlscredsx509.c