From 2343dd11a673597aa59813fd0cac2ae42e2e0312 Mon Sep 17 00:00:00 2001 From: Michael Tokarev Date: Sat, 28 Feb 2015 20:27:43 +0300 Subject: [PATCH] e500: fix memory leak Signed-off-by: Michael Tokarev Reviewed-by: Paolo Bonzini Reviewed-by: Stefan Weil --- hw/ppc/e500.c | 1 + 1 file changed, 1 insertion(+) diff --git a/hw/ppc/e500.c b/hw/ppc/e500.c index fd0d138a1b..d51fb60f79 100644 --- a/hw/ppc/e500.c +++ b/hw/ppc/e500.c @@ -308,6 +308,7 @@ static int ppce500_load_device_tree(MachineState *machine, } fdt = load_device_tree(filename, &fdt_size); + g_free(filename); if (!fdt) { goto out; } -- 2.11.4.GIT