hw/block/nvme: fix free of array-typed value
Since7f0f1acedf
("hw/block/nvme: support multiple namespaces"), the namespaces member of NvmeCtrl is no longer a dynamically allocated array. Remove the free. Fixes:7f0f1acedf
("hw/block/nvme: support multiple namespaces") Reported-by: Coverity (CID 1436131) Signed-off-by: Klaus Jensen <k.jensen@samsung.com> Message-Id: <20201104102248.32168-4-its@irrelevant.dk> Reviewed-by: Philippe Mathieu-Daudé <philmd@redhat.com> Signed-off-by: Max Reitz <mreitz@redhat.com>
This commit is contained in:
parent
bf288953f1
commit
73ad0ff216
|
@ -2799,7 +2799,6 @@ static void nvme_exit(PCIDevice *pci_dev)
|
|||
NvmeCtrl *n = NVME(pci_dev);
|
||||
|
||||
nvme_clear_ctrl(n);
|
||||
g_free(n->namespaces);
|
||||
g_free(n->cq);
|
||||
g_free(n->sq);
|
||||
g_free(n->aer_reqs);
|
||||
|
|
Loading…
Reference in New Issue