]> git.ipfire.org Git - thirdparty/libvirt.git/commit
qemuDomainSecretAESSetup: Automatically free non-secret locals
authorPeter Krempa <pkrempa@redhat.com>
Mon, 16 Mar 2020 09:13:38 +0000 (10:13 +0100)
committerPeter Krempa <pkrempa@redhat.com>
Mon, 16 Mar 2020 12:04:17 +0000 (13:04 +0100)
commit88126d5f0ec3899dbc3bc223d120de159ded9dca
tree363f32f14efae6af5277002dc77f65e87b181fab
parentb544481a91e6f3ee0e7534e0fc3d2cfb3bb60dba
qemuDomainSecretAESSetup: Automatically free non-secret locals

Use g_autofree for the ciphertext and init vector as they are not
secret and thus don't have to be cleared and use g_new0 to allocate the
iv for parity.

Signed-off-by: Peter Krempa <pkrempa@redhat.com>
Reviewed-by: Ján Tomko <jtomko@redhat.com>
src/qemu/qemu_domain.c