Peter Maydell 763e10f7bb 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
2019-02-21 18:17:45 +00:00
..
2019-02-12 08:59:21 -08:00
2019-02-14 11:46:30 +01:00
2019-02-18 10:52:08 +11:00
2019-02-05 16:50:19 +01:00
2019-02-18 16:20:13 +00:00
2019-02-18 16:20:13 +00:00
2019-02-07 16:49:30 +00:00