Li Qiang cb3a0522b6 virtio-gpu: fix memory leak in virtio_gpu_resource_create_2d
In virtio gpu resource create dispatch, if the pixman format is zero
it doesn't free the resource object allocated previously. Thus leading
a host memory leak issue. This patch avoid this.

Signed-off-by: Li Qiang <liqiang6-s@360.cn>
Reviewed-by: Marc-André Lureau <marcandre.lureau@redhat.com>
Message-id: 57df486e.8379240a.c3620.ff81@mx.google.com
Signed-off-by: Gerd Hoffmann <kraxel@redhat.com>
2016-10-26 14:52:21 +02:00
..
2016-10-17 14:13:58 +02:00
2016-10-25 10:25:27 +01:00
2016-10-10 16:23:40 +01:00
2016-10-24 15:46:10 +02:00
2016-10-24 17:29:15 -02:00
2016-10-24 15:27:20 +02:00
2016-10-10 02:21:43 +03:00
2016-10-24 15:03:09 +01:00
2016-10-17 10:58:03 -06:00
2016-10-24 15:27:20 +02:00