freedreno/drm: Fix memory leak in softpin implementation
authorLasse Lopperi <lasse.lopperi@ge.com>
Fri, 10 Jan 2020 08:47:55 +0000 (10:47 +0200)
committerMarge Bot <eric+marge@anholt.net>
Fri, 10 Jan 2020 16:21:35 +0000 (16:21 +0000)
commit3de2774dcb85fb2f87ae65a854fc5f25f0f34a91
tree530a9a47ba65a793eeed811efb474091202eae34
parentb5c9688516d00b00184e6fa6868de826916f5fc3
freedreno/drm: Fix memory leak in softpin implementation

Free the memory allocated for cmds/reloc_bos array when destoying the
associated ringbuffer.

For similar fix for the non-softpin implementation see:
https://gitlab.freedesktop.org/mesa/mesa/commit/d014af98b7afc69f4f733c8b8b6f2e3438e68407

Closes: https://gitlab.freedesktop.org/mesa/mesa/issues/2324
Fixes: f3cc0d2 ("freedreno: import libdrm_freedreno + redesign submit")
Signed-off-by: Lasse Lopperi <lasse.lopperi@ge.com>
Tested-by: Marge Bot <https://gitlab.freedesktop.org/mesa/mesa/merge_requests/3342>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/merge_requests/3342>
src/freedreno/drm/msm_ringbuffer_sp.c