virgl: free trans on map-error
authorErik Faye-Lund <erik.faye-lund@collabora.com>
Wed, 5 Sep 2018 11:50:18 +0000 (12:50 +0100)
committerErik Faye-Lund <erik.faye-lund@collabora.com>
Mon, 10 Sep 2018 08:35:02 +0000 (10:35 +0200)
commit9635869d735f44e381788f47585b4eb8ef124683
treec60bb0d7ef3c57df7819e2656e83e186d4890fd2
parent44e3e6a9b403f9325f49684b9baed1854da30cec
virgl: free trans on map-error

When we fail to map memory, we should also free trans to avoid
leaking memory.

Noticed while reading code.

Signed-off-by: Erik Faye-Lund <erik.faye-lund@collabora.com>
Reviewed-by: Dave Airlie <airlied@redhat.com>
src/gallium/drivers/virgl/virgl_texture.c