mirror of https://github.com/xemu-project/xemu.git
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>
This commit is contained in:
parent
acff77b1ea
commit
2343dd11a6
|
@ -308,6 +308,7 @@ static int ppce500_load_device_tree(MachineState *machine,
|
||||||
}
|
}
|
||||||
|
|
||||||
fdt = load_device_tree(filename, &fdt_size);
|
fdt = load_device_tree(filename, &fdt_size);
|
||||||
|
g_free(filename);
|
||||||
if (!fdt) {
|
if (!fdt) {
|
||||||
goto out;
|
goto out;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue