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

Philippe Mathieu-Daudé posted 5 patches 2 years, 6 months ago
Test checkpatch passed
Patches applied successfully (tree, apply log)
git fetch https://github.com/patchew-project/qemu tags/patchew/20211006164931.172349-1-philmd@redhat.com
block/nvme.c       | 31 +++++++++++++++++--------------
block/trace-events |  2 +-
2 files changed, 18 insertions(+), 15 deletions(-)
[PATCH 0/5] block/nvme: Fix a memory leak in nvme_free_queue_pair()
Posted by Philippe Mathieu-Daudé 2 years, 6 months ago
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(-)

-- 
2.31.1