qemu-devel
[Top][All Lists]
Advanced

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

Re: [Qemu-devel] [PATCH] net: Fix memory leak in net_param_nic()


From: Peter Maydell
Subject: Re: [Qemu-devel] [PATCH] net: Fix memory leak in net_param_nic()
Date: Mon, 30 Apr 2018 08:51:04 +0100

On 30 April 2018 at 08:26, Thomas Huth <address@hidden> wrote:
> The early exits in case of errors leak the memory allocated for nd_id.
> Fix it by using a "goto out" to the cleanup at the end of the function
> instead.
>
> Signed-off-by: Thomas Huth <address@hidden>
> ---

Reviewed-by: Peter Maydell <address@hidden>

thanks
-- PMM



reply via email to

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