diff options
author | Lu Lina <lina.lulina@huawei.com> | 2015-06-19 14:27:34 +0800 |
---|---|---|
committer | Stefan Hajnoczi <stefanha@redhat.com> | 2015-06-23 15:06:17 +0100 |
commit | 25940fa7e57ffce9d495b4c2aadc39790535856d (patch) | |
tree | 49370f268626a69f769e4b41ae57464f43c33598 /hw/block | |
parent | d5941ddae82a35771656d7e35f64f7f8f19c5627 (diff) | |
download | qemu-25940fa7e57ffce9d495b4c2aadc39790535856d.zip qemu-25940fa7e57ffce9d495b4c2aadc39790535856d.tar.gz qemu-25940fa7e57ffce9d495b4c2aadc39790535856d.tar.bz2 |
nvme: Fix memleak in nvme_dma_read_prp
Signed-off-by: Lu Lina <lina.lulina@huawei.com>
Acked-by: Keith Busch <keith.busch@intel.com>
Message-id: 1434695254-69808-1-git-send-email-kathy.wangting@huawei.com
Signed-off-by: Stefan Hajnoczi <stefanha@redhat.com>
Diffstat (limited to 'hw/block')
-rw-r--r-- | hw/block/nvme.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/hw/block/nvme.c b/hw/block/nvme.c index 4b6d5e6..c6a6a0e 100644 --- a/hw/block/nvme.c +++ b/hw/block/nvme.c @@ -154,6 +154,7 @@ static uint16_t nvme_dma_read_prp(NvmeCtrl *n, uint8_t *ptr, uint32_t len, qemu_sglist_destroy(&qsg); return NVME_INVALID_FIELD | NVME_DNR; } + qemu_sglist_destroy(&qsg); return NVME_SUCCESS; } |