commit | 33243031dad02d161225ba99d782616da133f689 | [log] [tgz] |
---|---|---|
author | Li Qiang <liq3ea@gmail.com> | Thu Dec 29 03:11:26 2016 -0500 |
committer | Gerd Hoffmann <kraxel@redhat.com> | Tue Jan 03 15:47:21 2017 +0100 |
tree | ad918b494795301504981bf77aaa1fb5379bcd2a | |
parent | b8e23926c568f2e963af39028b71c472e3023793 [diff] |
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>