|
From: | Richard Henderson |
Subject: | Re: [PATCH v2] kvm: fix memory leak on failure to read stats descriptors |
Date: | Mon, 5 Sep 2022 16:57:09 +0100 |
User-agent: | Mozilla/5.0 (X11; Linux x86_64; rv:91.0) Gecko/20100101 Thunderbird/91.11.0 |
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.henderson@linaro.org> Signed-off-by: Paolo Bonzini<pbonzini@redhat.com> --- accel/kvm/kvm-all.c | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-)
Thanks, Reviewed-by: Richard Henderson <richard.henderson@linaro.org> r~
[Prev in Thread] | Current Thread | [Next in Thread] |