diff options
author | Peter Maydell | 2019-02-21 19:17:45 +0100 |
---|---|---|
committer | Peter Maydell | 2019-02-21 19:17:45 +0100 |
commit | 763e10f7bb6413c745edf36e9e806c3d626c8262 (patch) | |
tree | 3654c71fb7312a7ca2e988fcef6fba8d7563cb72 /dump.c | |
parent | Merge remote-tracking branch 'remotes/jnsnow/tags/bitmaps-pull-request' into ... (diff) | |
download | qemu-763e10f7bb6413c745edf36e9e806c3d626c8262.tar.gz qemu-763e10f7bb6413c745edf36e9e806c3d626c8262.tar.xz qemu-763e10f7bb6413c745edf36e9e806c3d626c8262.zip |
hw/arm/armsse: Fix memory leak in error-exit path
Coverity points out (CID 1398632, CID 1398650) that we
leak a couple of allocated strings in the error-exit
code path for setting up the MHUs in the ARMSSE.
Fix this bug by moving the allocate-and-free of each
string to be closer to the use, so we do the free before
doing the error-exit check.
Fixes: f8574705f62b38a ("hw/arm/armsse: Add unimplemented-device stubs for MHUs")
Signed-off-by: Peter Maydell <peter.maydell@linaro.org>
Reviewed-by: Philippe Mathieu-Daudé <philmd@redhat.com>
Message-id: 20190215113707.24553-1-peter.maydell@linaro.org
Diffstat (limited to 'dump.c')
0 files changed, 0 insertions, 0 deletions