qemu-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [PATCH v2] kvm: fix memory leak on failure to read stats descriptors


From: Philippe Mathieu-Daudé
Subject: Re: [PATCH v2] kvm: fix memory leak on failure to read stats descriptors
Date: Mon, 5 Sep 2022 23:32:02 +0200

On Mon, Sep 5, 2022 at 3:28 PM Paolo Bonzini <pbonzini@redhat.com> 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(-)

Reviewed-by: Philippe Mathieu-Daudé <f4bug@amsat.org>



reply via email to

[Prev in Thread] Current Thread [Next in Thread]