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. Thanks, /mjt