]> git.ipfire.org Git - thirdparty/libvirt.git/commit
qemu_tpm.c: fix 'shortName' leak
authorDaniel Henrique Barboza <danielhb413@gmail.com>
Sat, 14 Nov 2020 12:56:41 +0000 (09:56 -0300)
committerDaniel Henrique Barboza <danielhb413@gmail.com>
Mon, 16 Nov 2020 16:55:06 +0000 (13:55 -0300)
commit904e59f43a930c93549211ebd1c3296a5bf126f7
treeb0e2539fdd60884381acf1b839aaff0c1c9d82db
parente8e90a35df007ee6032d2dc0b6aa3d21747cc326
qemu_tpm.c: fix 'shortName' leak

This is a Coverity fix pointed out by John in IRC. This code
was introduced in 19d74fdf0eb, when the TPM Proxy device for
for ppc64 was introduced.

This will leak in case we have 2 TPMs in the same domain, a
possible scenario with the protected Ultravisor execution in
PowerPC guests.

Fixes: 19d74fdf0eb5d2e89e80ceedea736425160ffccb
Reported-by: John Ferlan <jferlan@redhat.com>
Reviewed-by: Peter Krempa <pkrempa@redhat.com>
Signed-off-by: Daniel Henrique Barboza <danielhb413@gmail.com>
src/qemu/qemu_tpm.c