On 9/5/22 13:39, Paolo Bonzini wrote:
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.hender...@linaro.org>
Signed-off-by: Paolo Bonzini<pbonz...@redhat.com>
---
  accel/kvm/kvm-all.c | 9 ++++-----
  1 file changed, 4 insertions(+), 5 deletions(-)

Thanks,

Reviewed-by: Richard Henderson <richard.hender...@linaro.org>


r~

Reply via email to