]> git.ipfire.org Git - thirdparty/libvirt.git/commit
virsh: cmdSecretGetValue: Use virSecureErase instead of VIR_DISPOSE_N
authorPeter Krempa <pkrempa@redhat.com>
Mon, 1 Feb 2021 13:09:01 +0000 (14:09 +0100)
committerPeter Krempa <pkrempa@redhat.com>
Wed, 3 Feb 2021 12:07:12 +0000 (13:07 +0100)
commite6195ed80c9fcf2705946499803fdfad7e744190
tree1b0ea25f6fa66e9e2e5a78eb0aceec8161c67c5c
parentee88bce43d2db791eb38245109dab3152e65e132
virsh: cmdSecretGetValue: Use virSecureErase instead of VIR_DISPOSE_N

Switch the secret value to 'g_autofree' for handling of the memory and
clear it out using virSecureErase.

Signed-off-by: Peter Krempa <pkrempa@redhat.com>
Reviewed-by: Daniel P. Berrangé <berrange@redhat.com>
tools/virsh-secret.c