Re: [Qemu-devel] [PATCH] hw/arm/armsse: Fix memory leak in error-exit path

2019-02-15 Thread Philippe Mathieu-Daudé
On 2/15/19 12:37 PM, Peter Maydell wrote: > 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

[Qemu-devel] [PATCH] hw/arm/armsse: Fix memory leak in error-exit path

2019-02-15 Thread Peter Maydell
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. Fix