virtio-gpu: fix memory leak in error path
commit8d94c1ca53c638f6ec76840b0cb24677fb7705bf
authorGerd Hoffmann <kraxel@redhat.com>
Fri, 18 Dec 2015 10:55:01 +0000 (18 11:55 +0100)
committerGerd Hoffmann <kraxel@redhat.com>
Wed, 3 Feb 2016 09:41:36 +0000 (3 10:41 +0100)
tree575cdfb8fab33fe3b6f6d9833913e59ebd63b7c4
parentbba19b88a6bce3adc280b0d7b6a4fc51445afd80
virtio-gpu: fix memory leak in error path

Found by Coverity Scan, buf not freed on error.

Signed-off-by: Gerd Hoffmann <kraxel@redhat.com>
Reviewed-by: Marc-André Lureau <marcandre.lureau@redhat.com>
hw/display/virtio-gpu-3d.c