diff options
author | Li Qiang <liq3ea@gmail.com> | 2016-12-29 03:11:26 -0500 |
---|---|---|
committer | Gerd Hoffmann <kraxel@redhat.com> | 2017-01-03 15:47:21 +0100 |
commit | 33243031dad02d161225ba99d782616da133f689 (patch) | |
tree | ad918b494795301504981bf77aaa1fb5379bcd2a /COPYING | |
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>
Diffstat (limited to 'COPYING')
0 files changed, 0 insertions, 0 deletions