]> git.ipfire.org Git - thirdparty/libvirt.git/commit
qemuxml2argvtest: Don't leak TPM unix path
authorMichal Privoznik <mprivozn@redhat.com>
Wed, 13 Jun 2018 11:16:20 +0000 (13:16 +0200)
committerMichal Privoznik <mprivozn@redhat.com>
Thu, 14 Jun 2018 12:25:42 +0000 (14:25 +0200)
commita02526a045f65b15f8bf6d4eddd9d5723c523c58
tree6006c5bb9773b165a93cb2afda3072d5a5d65bc3
parenta349c6c21c67ccf4574dcce0669746031d99f603
qemuxml2argvtest: Don't leak TPM unix path

When testing a domain XML with TPM we overwrite UNIX socket path
to mimic what qemuTPMEmulatorPrepareHost() is doing (because
*PrepareHost() functions are not called from the test). But we
are not doing it fully - we need to set the chardev's type too so
that virDomainTPMDefFree() can free the path.

Signed-off-by: Michal Privoznik <mprivozn@redhat.com>
Reviewed-by: Andrea Bolognani <abologna@redhat.com>
tests/qemuxml2argvtest.c