qemu-trivial
[Top][All Lists]
Advanced

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

Re: [Qemu-trivial] [PATCH 5/9] e500: fix memory leak


From: Michael Tokarev
Subject: Re: [Qemu-trivial] [PATCH 5/9] e500: fix memory leak
Date: Sat, 28 Feb 2015 12:41:02 +0300
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:31.0) Gecko/20100101 Icedove/31.4.0

27.02.2015 10:50, address@hidden wrote:
> From: Gonglei <address@hidden>
> 
> Signed-off-by: Gonglei <address@hidden>
> ---
>  hw/ppc/e500.c | 1 +
>  1 file changed, 1 insertion(+)
> 
> diff --git a/hw/ppc/e500.c b/hw/ppc/e500.c
> index 7e17d18..38203a6 100644
> --- a/hw/ppc/e500.c
> +++ b/hw/ppc/e500.c
> @@ -542,6 +542,7 @@ done:
>  
>  out:
>      g_free(pci_map);
> +    g_free(filename);

This patch breaks compilation, because `filename' variable is
local to the "if (dtb_file)" code block at the beginning of this
function and shold be freed there.

Thanks,

/mjt



reply via email to

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