diff options
author | Klaus Jensen <k.jensen@samsung.com> | 2020-11-04 11:22:48 +0100 |
---|---|---|
committer | Max Reitz <mreitz@redhat.com> | 2020-11-09 15:44:21 +0100 |
commit | 73ad0ff216d2e1cf08909a0597e7b072babfe9c4 (patch) | |
tree | 4f012b9495d16a7907f3a99fe57ac115d46aceb3 | |
parent | bf288953f13b4a3c57e6e59656ac5367491c65eb (diff) | |
download | qemu-73ad0ff216d2e1cf08909a0597e7b072babfe9c4.zip qemu-73ad0ff216d2e1cf08909a0597e7b072babfe9c4.tar.gz qemu-73ad0ff216d2e1cf08909a0597e7b072babfe9c4.tar.bz2 |
hw/block/nvme: fix free of array-typed value
Since 7f0f1acedf15 ("hw/block/nvme: support multiple namespaces"), the
namespaces member of NvmeCtrl is no longer a dynamically allocated
array. Remove the free.
Fixes: 7f0f1acedf15 ("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>
-rw-r--r-- | hw/block/nvme.c | 1 |
1 files changed, 0 insertions, 1 deletions
diff --git a/hw/block/nvme.c b/hw/block/nvme.c index 2bdc50e..01b657b 100644 --- a/hw/block/nvme.c +++ b/hw/block/nvme.c @@ -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); |