diff options
author | Lu Lina | 2015-06-19 08:27:34 +0200 |
---|---|---|
committer | Stefan Hajnoczi | 2015-06-23 16:06:17 +0200 |
commit | 25940fa7e57ffce9d495b4c2aadc39790535856d (patch) | |
tree | 49370f268626a69f769e4b41ae57464f43c33598 /hw | |
parent | vvfat: add a label option (diff) | |
download | qemu-25940fa7e57ffce9d495b4c2aadc39790535856d.tar.gz qemu-25940fa7e57ffce9d495b4c2aadc39790535856d.tar.xz qemu-25940fa7e57ffce9d495b4c2aadc39790535856d.zip |
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')
-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 4b6d5e6078..c6a6a0e49a 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; } |