Re: [PATCH] hw/nvme: Fix memory leak in nvme_dsm

2024-07-10 Thread Klaus Jensen
On Jul 3 01:13, Zheyu Ma wrote: > The allocated memory to hold LBA ranges leaks in the nvme_dsm function. This > happens because the allocated memory for iocb->range is not freed in all > error handling paths. > > Fix this by adding a free to ensure that the allocated memory is properly > freed.

RE: [PATCH] hw/nvme: Fix memory leak in nvme_dsm

2024-07-02 Thread Xingtao Yao (Fujitsu)
> -Original Message- > From: qemu-devel-bounces+yaoxt.fnst=fujitsu@nongnu.org > On Behalf Of Zheyu > Ma > Sent: Wednesday, July 3, 2024 7:13 AM > To: Keith Busch ; Klaus Jensen ; Jesper > Devantier > Cc: Zheyu Ma ; qemu-bl...@nongnu.org; > qemu-devel@nongnu.org > Subject: [PATCH] h