Li Qiang 33243031da virtio-gpu-3d: fix memory leak in resource attach backing
If the virgl_renderer_resource_attach_iov function fails the
'res_iovs' will be leaked. Add check of the return value to
free the 'res_iovs' when failing.

Signed-off-by: Li Qiang <liq3ea@gmail.com>
Reviewed-by: Marc-André Lureau <marcandre.lureau@redhat.com>
Message-id: 1482999086-59795-1-git-send-email-liq3ea@gmail.com
Signed-off-by: Gerd Hoffmann <kraxel@redhat.com>
2017-01-03 15:47:21 +01:00
..
2016-05-19 16:42:29 +02:00
2016-05-19 16:42:29 +02:00
2016-01-29 15:07:24 +00:00
2016-01-29 15:07:24 +00:00
2016-05-13 09:33:38 +01:00
2016-06-14 16:01:03 +01:00
2016-01-29 15:07:24 +00:00
2016-10-24 16:26:56 +01:00
2016-01-29 15:07:23 +00:00
2016-01-29 15:07:24 +00:00
2016-01-29 15:07:24 +00:00
2016-01-29 15:07:24 +00:00
2016-09-22 18:13:08 +01:00
2016-01-29 15:07:24 +00:00
2016-09-08 18:05:21 +04:00
2016-01-29 15:07:24 +00:00
2016-10-28 17:54:39 -07:00