aboutsummaryrefslogtreecommitdiff
path: root/hw/misc/pci-testdev.c
diff options
context:
space:
mode:
authorPeter Maydell <peter.maydell@linaro.org>2020-03-30 13:18:59 +0100
committerPeter Maydell <peter.maydell@linaro.org>2020-03-30 13:18:59 +0100
commit63fef6287e555651e1a27d595ad677f21e04de32 (patch)
treef83c9fbbbe41f7e8f3aa69bd1b1aae96d5f7adca /hw/misc/pci-testdev.c
parente22684e34d41d4ea24ec31602a75f1224eeb1e12 (diff)
downloadqemu-63fef6287e555651e1a27d595ad677f21e04de32.zip
qemu-63fef6287e555651e1a27d595ad677f21e04de32.tar.gz
qemu-63fef6287e555651e1a27d595ad677f21e04de32.tar.bz2
hw/arm/xlnx-zynqmp.c: Avoid memory leak in error-return path
In xlnx_zynqmp_realize() if the attempt to realize the SD controller object fails then the error-return path will leak the 'bus_name' string. Fix this by deferring the allocation until after the realize has succeeded. Fixes: Coverity CID 1421911 Signed-off-by: Peter Maydell <peter.maydell@linaro.org> Reviewed-by: Edgar E. Iglesias <edgar.iglesias@xilinx.com> Reviewed-by: Philippe Mathieu-Daudé <philmd@redhat.com> Reviewed-by: Alistair Francis <alistair.francis@wdc.com> Message-id: 20200324134947.15384-2-peter.maydell@linaro.org
Diffstat (limited to 'hw/misc/pci-testdev.c')
0 files changed, 0 insertions, 0 deletions