aboutsummaryrefslogtreecommitdiff
path: root/hw/ppc/e500.c
diff options
context:
space:
mode:
authorMichael Tokarev <mjt@tls.msk.ru>2015-02-28 20:27:43 +0300
committerMichael Tokarev <mjt@tls.msk.ru>2015-03-10 08:15:34 +0300
commit2343dd11a673597aa59813fd0cac2ae42e2e0312 (patch)
tree875c1f21391cdf81a916cfe37c851c4576b6e04b /hw/ppc/e500.c
parentacff77b1ea90366143cb16d6fb1840e5d43b6633 (diff)
e500: fix memory leak
Signed-off-by: Michael Tokarev <mjt@tls.msk.ru> Reviewed-by: Paolo Bonzini <pbonzini@redhat.com> Reviewed-by: Stefan Weil <sw@weilnetz.de>
Diffstat (limited to 'hw/ppc/e500.c')
-rw-r--r--hw/ppc/e500.c1
1 files changed, 1 insertions, 0 deletions
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;
}