]> git.ipfire.org Git - thirdparty/libvirt.git/commit
virQEMUCapsReset: also clear out hostCPUModel
authorJán Tomko <jtomko@redhat.com>
Mon, 24 Oct 2016 15:35:32 +0000 (17:35 +0200)
committerJán Tomko <jtomko@redhat.com>
Tue, 25 Oct 2016 11:54:58 +0000 (13:54 +0200)
commit1157678f81182f8fb1b88c6e61593f087becbc27
tree4e19d9afdf04f0b6e0152b8c90e0dfc44d2e733f
parentf830674bf320522f50a09759fbc568c9f2f436f1
virQEMUCapsReset: also clear out hostCPUModel

After succesfully reading an outdated caps cache from disk,
calling virQEMUCapsReset did not properly clear out the calculated
host CPU model. This lead to a memory leak when the host CPU model
pointer was overwritten later in virQEMUCapsNewForBinaryInternal.

Introduced by commit 68c70118.
src/qemu/qemu_capabilities.c