Skip to content

block/nvme: Fix a memory leak in nvme_free_queue_pair()

Philippe Mathieu-Daudé qemu-devel 1 version In review

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest5 patches 11 repliesIn review

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/5block/nvme: Automatically free qemu_memalign() with QEMU_AUTO_VFREEblock/nvme.c+4 -71 reply
2/5block/nvme: Display CQ/SQ pointer in nvme_free_queue_pair()block/nvme.c block/trace-events+2 -21 reply
3/5block/nvme: Extract nvme_free_queue() from nvme_free_queue_pair()block/nvme.c+7 -21 reply
4/5block/nvme: Pass BDRVNVMeState* handle to nvme_free_queue_pair()block/nvme.c+7 -71 reply
5/5block/nvme: Fix memory leak from nvme_init_queue()block/nvme.c+1 -07 replies

Reviews trailers per patch

4 of 5 patches have a Reviewed-by or Acked-by.

PatchStefan Hajnoczi
1/5R-b
2/5R-b
3/5R-b
4/5R-b
5/5

Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes.

Read the v1 thread

Cover letter [PATCH 0/5] block/nvme: Fix a memory leak in nvme_free_queue_pair()

Hi,

While searching for a memory corruption in the NVMe block driver, Valgrind revealed one leak. It is not what I'm looking for, but worth fixing (at least one warning removed from the huge valgrind report).

Philippe Mathieu-Daudé (5):
block/nvme: Automatically free qemu_memalign() with QEMU_AUTO_VFREE block/nvme: Display CQ/SQ pointer in nvme_free_queue_pair() block/nvme: Extract nvme_free_queue() from nvme_free_queue_pair() block/nvme: Pass BDRVNVMeState* handle to nvme_free_queue_pair() block/nvme: Fix memory leak from nvme_init_queue()

 block/nvme.c       | 31 +++++++++++++++++--------------
 block/trace-events |  2 +-
 2 files changed, 18 insertions(+), 15 deletions(-)
Signature · 1 line
2.31.1