qemu-e2k/hw/nvme
Klaus Jensen 4b32319cda hw/nvme: fix memory leak in nvme_dsm
The iocb (and the allocated memory to hold LBA ranges) leaks if reading
the LBA ranges fails.

Fix this by adding a free and an unref of the iocb.

Reported-by: Coverity (CID 1508281)
Fixes: d7d1474fd8 ("hw/nvme: reimplement dsm to allow cancellation")
Reviewed-by: Philippe Mathieu-Daudé <philmd@linaro.org>
Signed-off-by: Klaus Jensen <k.jensen@samsung.com>
2023-04-12 12:03:09 +02:00
..
ctrl.c hw/nvme: fix memory leak in nvme_dsm 2023-04-12 12:03:09 +02:00
dif.c hw/nvme: add new command abort case 2022-06-03 21:48:24 +02:00
dif.h hw/nvme: 64-bit pi support 2022-03-03 09:30:21 +01:00
Kconfig
meson.build
ns.c hw/nvme: fix memory leak in fdp ruhid parsing 2023-04-12 12:03:02 +02:00
nvme.h hw/nvme: flexible data placement emulation 2023-03-06 15:28:02 +01:00
subsys.c hw/nvme: flexible data placement emulation 2023-03-06 15:28:02 +01:00
trace-events hw/nvme: flexible data placement emulation 2023-03-06 15:28:02 +01:00
trace.h