diff options
author | Klaus Jensen <k.jensen@samsung.com> | 2023-04-11 20:54:44 +0200 |
---|---|---|
committer | Michael Tokarev <mjt@tls.msk.ru> | 2023-04-13 18:28:32 +0300 |
commit | c22120835295f2bbb7d101f1fa60abb70029be85 (patch) | |
tree | b28c14e96f377f76cfde1cc01f2e725dc1768a46 /tests/tcg/multiarch/gdbstub/memory.py | |
parent | 3218890da457ee17b3b49b8c2451130ed808cb79 (diff) |
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: d7d1474fd85d ("hw/nvme: reimplement dsm to allow cancellation")
Reviewed-by: Philippe Mathieu-Daudé <philmd@linaro.org>
Signed-off-by: Klaus Jensen <k.jensen@samsung.com>
(cherry picked from commit 4b32319cdacd99be983e1a74128289ef52c5964e)
Signed-off-by: Michael Tokarev <mjt@tls.msk.ru>
Diffstat (limited to 'tests/tcg/multiarch/gdbstub/memory.py')
0 files changed, 0 insertions, 0 deletions