aboutsummaryrefslogtreecommitdiff
path: root/.gitpublish
diff options
context:
space:
mode:
authorPeter Maydell <peter.maydell@linaro.org>2019-02-21 18:17:45 +0000
committerPeter Maydell <peter.maydell@linaro.org>2019-02-21 18:17:45 +0000
commit763e10f7bb6413c745edf36e9e806c3d626c8262 (patch)
tree3654c71fb7312a7ca2e988fcef6fba8d7563cb72 /.gitpublish
parentfc3dbb90f2eb069801bfb4cfe9cbc83cf9c5f4a9 (diff)
downloadqemu-763e10f7bb6413c745edf36e9e806c3d626c8262.zip
qemu-763e10f7bb6413c745edf36e9e806c3d626c8262.tar.gz
qemu-763e10f7bb6413c745edf36e9e806c3d626c8262.tar.bz2
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 '.gitpublish')
0 files changed, 0 insertions, 0 deletions