]> git.ipfire.org Git - thirdparty/libvirt.git/commit
tpm: Fix memory leak and use existing variable instead
authorStefan Berger <stefanb@linux.vnet.ibm.com>
Fri, 26 Jul 2019 20:56:30 +0000 (16:56 -0400)
committerEric Blake <eblake@redhat.com>
Fri, 26 Jul 2019 21:32:29 +0000 (16:32 -0500)
commitb8358f94e0ae5b7436bb056da03b342dd76b31fe
tree5bb386792fd7a6b479e7570b147cfae1c3639829
parente1ff8a95c6e15895e17faa2313c02fee605260e9
tpm: Fix memory leak and use existing variable instead

Use the existing variables rather then calling virTPMSwtpmXYZ().

Signed-off-by: Stefan Berger <stefanb@linux.ibm.com>
Reviewed-by: John Ferlan <jferlan@redhat.com>
Message-Id: <20190726205633.2041912-2-stefanb@linux.vnet.ibm.com>
src/qemu/qemu_tpm.c