aboutsummaryrefslogtreecommitdiff
path: root/hw
diff options
context:
space:
mode:
authorPaolo Bonzini <pbonzini@redhat.com>2022-09-05 12:06:02 +0200
committerPaolo Bonzini <pbonzini@redhat.com>2022-09-18 09:17:40 +0200
commit21adec30f62e4e700e0e217da756723e189d7b29 (patch)
tree7f8ce70d9d34d452888e35254d0c094b16d3c017 /hw
parent958e1dd1300f37f18b2161dfb4eb806fc8c19b44 (diff)
downloadqemu-21adec30f62e4e700e0e217da756723e189d7b29.zip
qemu-21adec30f62e4e700e0e217da756723e189d7b29.tar.gz
qemu-21adec30f62e4e700e0e217da756723e189d7b29.tar.bz2
kvm: fix memory leak on failure to read stats descriptors
Reported by Coverity as CID 1490142. Since the size is constant and the lifetime is the same as the StatsDescriptors struct, embed the struct directly instead of using a separate allocation. Suggested-by: Richard Henderson <richard.henderson@linaro.org> Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
Diffstat (limited to 'hw')
0 files changed, 0 insertions, 0 deletions