diff options
author | Peter Maydell <peter.maydell@linaro.org> | 2017-01-09 13:38:43 +0000 |
---|---|---|
committer | Gerd Hoffmann <kraxel@redhat.com> | 2017-01-11 09:19:05 +0100 |
commit | c84f0f25db2eaab101665ddb60c1ddf1decce76a (patch) | |
tree | ee75e73c50f4038ed59f8ac7b7d8a6794b5e4fd7 /include | |
parent | 039aa5db0e7d9edb2bd807c2d4e09d8d7be4c9c4 (diff) | |
download | qemu-c84f0f25db2eaab101665ddb60c1ddf1decce76a.zip qemu-c84f0f25db2eaab101665ddb60c1ddf1decce76a.tar.gz qemu-c84f0f25db2eaab101665ddb60c1ddf1decce76a.tar.bz2 |
virtio-gpu: Fix memory leak in virtio_gpu_load()
Coverity points out that if we fail in the "creating resources"
loop in virtio_gpu_load() we will leak various resources (CID 1356431).
Failing a VM load is going to leave the simulation in a complete mess,
but we can tidy up to the point that a full system reset should
get us back to sanity.
Signed-off-by: Peter Maydell <peter.maydell@linaro.org>
Message-id: 1483969123-14839-3-git-send-email-peter.maydell@linaro.org
Signed-off-by: Gerd Hoffmann <kraxel@redhat.com>
Diffstat (limited to 'include')
0 files changed, 0 insertions, 0 deletions