diff options
| author | Peter Maydell | 2017-01-09 14:38:43 +0100 |
|---|---|---|
| committer | Gerd Hoffmann | 2017-01-11 09:19:05 +0100 |
| commit | c84f0f25db2eaab101665ddb60c1ddf1decce76a (patch) | |
| tree | ee75e73c50f4038ed59f8ac7b7d8a6794b5e4fd7 /include | |
| parent | virtio-gpu: Recalculate VirtIOGPU::hostmem on VM load (diff) | |
| download | qemu-c84f0f25db2eaab101665ddb60c1ddf1decce76a.tar.gz qemu-c84f0f25db2eaab101665ddb60c1ddf1decce76a.tar.xz qemu-c84f0f25db2eaab101665ddb60c1ddf1decce76a.zip | |
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
