diff options
author | Paolo Bonzini <pbonzini@redhat.com> | 2022-09-05 12:06:02 +0200 |
---|---|---|
committer | Paolo Bonzini <pbonzini@redhat.com> | 2022-09-18 09:17:40 +0200 |
commit | 21adec30f62e4e700e0e217da756723e189d7b29 (patch) | |
tree | 7f8ce70d9d34d452888e35254d0c094b16d3c017 /module-common.c | |
parent | 958e1dd1300f37f18b2161dfb4eb806fc8c19b44 (diff) |
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 'module-common.c')
0 files changed, 0 insertions, 0 deletions