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-01-14 13:45:40 +00:00
2019-02-17 21:54:02 +11:00
2019-02-05 16:50:20 +01:00
2019-02-21 18:17:45 +00:00
2019-01-24 13:10:19 +01:00
2019-02-13 16:18:17 +08:00
2019-02-13 14:23:39 +01:00
2019-02-17 21:54:02 +11:00
2019-02-17 21:54:02 +11:00
2019-02-06 15:55:56 +01:00
2019-02-05 16:50:20 +01:00
2019-02-01 11:58:50 +01:00
2019-02-14 11:46:30 +01:00
2019-01-24 14:16:56 +00:00
2019-02-12 08:59:21 -08:00
2019-02-05 16:50:21 +01:00
2019-02-05 19:39:22 +00:00
2019-02-05 16:50:19 +01:00
2019-02-14 11:46:30 +01:00
2019-02-18 10:52:08 +11:00
2019-02-13 14:23:39 +01:00
2019-02-05 16:50:20 +01:00
2019-02-05 16:50:19 +01:00
2019-01-09 22:09:31 -02:00
2019-02-05 16:50:19 +01:00
2019-02-14 17:47:28 +01:00
2019-02-17 21:54:02 +11:00
2019-02-05 16:50:20 +01:00
2019-02-05 16:50:19 +01:00
2019-02-05 16:50:20 +01:00
2019-02-05 10:58:33 -05:00
2019-02-05 16:50:21 +01:00
2019-02-17 21:54:02 +11:00
2018-12-20 11:19:12 -05:00
2019-02-05 16:50:19 +01:00
2019-02-18 16:20:13 +00:00
2019-01-19 11:01:33 +02:00
2019-02-11 15:56:22 -08:00
2019-02-18 16:20:13 +00:00
2019-02-17 21:54:02 +11:00
2019-01-30 10:24:20 +01:00
2019-02-05 19:39:22 +00:00
2019-02-07 16:49:30 +00:00
2019-02-14 11:46:30 +01:00
2019-01-29 11:46:05 +00:00
2019-02-18 14:44:05 +01:00
2019-01-17 21:10:57 -05:00
2019-02-05 16:50:21 +01:00
2019-02-06 15:54:12 +01:00
2019-02-20 09:41:23 +01:00
2019-02-05 16:50:21 +01:00
2019-02-05 10:58:33 -05:00
2019-01-11 15:46:55 +01:00
2019-02-04 11:04:49 +00:00
2019-01-14 13:45:40 +00:00
2019-02-05 16:50:20 +01:00
2019-02-05 16:50:21 +01:00