hw/block/nvme: fix free of array-typed value
commit73ad0ff216d2e1cf08909a0597e7b072babfe9c4
authorKlaus Jensen <k.jensen@samsung.com>
Wed, 4 Nov 2020 10:22:48 +0000 (4 11:22 +0100)
committerMax Reitz <mreitz@redhat.com>
Mon, 9 Nov 2020 14:44:21 +0000 (9 15:44 +0100)
tree4f012b9495d16a7907f3a99fe57ac115d46aceb3
parentbf288953f13b4a3c57e6e59656ac5367491c65eb
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>
hw/block/nvme.c