On 2015/2/28 17:41, Michael Tokarev wrote: > 27.02.2015 10:50, arei.gong...@huawei.com wrote: >> From: Gonglei <arei.gong...@huawei.com> >> >> Signed-off-by: Gonglei <arei.gong...@huawei.com> >> --- >> 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. > Yes, it is. Thanks for your review, I'll respin it.
Regards, -Gonglei