diff options
author | Peter Maydell | 2020-11-06 18:58:23 +0100 |
---|---|---|
committer | Philippe Mathieu-Daudé | 2020-11-09 00:40:44 +0100 |
commit | bf4ee88ab63fcf2dcb75f0d68cc6c8d2edb68212 (patch) | |
tree | d06a2bedb0528dbb144c7ab1ab8bca14723b4a04 /linux-user/tilegx/target_elf.h | |
parent | target/mips: Fix PageMask with variable page size (diff) | |
download | qemu-bf4ee88ab63fcf2dcb75f0d68cc6c8d2edb68212.tar.gz qemu-bf4ee88ab63fcf2dcb75f0d68cc6c8d2edb68212.tar.xz qemu-bf4ee88ab63fcf2dcb75f0d68cc6c8d2edb68212.zip |
hw/mips/boston: Fix memory leak in boston_fdt_filter() error-handling paths
Coverity points out that the error-handling paths in the
boston_fdt_filter() function don't free the fdt that was allocated.
Fix the leak by using g_autofree.
Fixes: Coverity CID 1432275
Signed-off-by: Peter Maydell <peter.maydell@linaro.org>
Reviewed-by: Philippe Mathieu-Daudé <f4bug@amsat.org>
Message-Id: <20201106175823.1650-1-peter.maydell@linaro.org>
Signed-off-by: Philippe Mathieu-Daudé <f4bug@amsat.org>
Diffstat (limited to 'linux-user/tilegx/target_elf.h')
0 files changed, 0 insertions, 0 deletions