diff options
author | Rob Clark <robclark@freedesktop.org> | 2016-06-13 09:49:46 -0400 |
---|---|---|
committer | Rob Clark <robclark@freedesktop.org> | 2016-06-13 09:49:54 -0400 |
commit | 09bfd5c716eeaacec06c1d326b52b47e393e4d3e (patch) | |
tree | d23dcd3b9f0b2990404db7756ed4f23a35f3d4ba /freedreno | |
parent | 9bdec97a1991c3cc53d1601eb809e33b154a198d (diff) | |
download | libdrm-09bfd5c716eeaacec06c1d326b52b47e393e4d3e.tar.gz libdrm-09bfd5c716eeaacec06c1d326b52b47e393e4d3e.tar.bz2 libdrm-09bfd5c716eeaacec06c1d326b52b47e393e4d3e.zip |
freedreno/msm: fix memory leak on ringbuffer free
Signed-off-by: Rob Clark <robclark@freedesktop.org>
Diffstat (limited to 'freedreno')
-rw-r--r-- | freedreno/msm/msm_ringbuffer.c | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/freedreno/msm/msm_ringbuffer.c b/freedreno/msm/msm_ringbuffer.c index becf2458..34bc2fe6 100644 --- a/freedreno/msm/msm_ringbuffer.c +++ b/freedreno/msm/msm_ringbuffer.c @@ -353,6 +353,11 @@ static void msm_ringbuffer_destroy(struct fd_ringbuffer *ring) struct msm_ringbuffer *msm_ring = to_msm_ringbuffer(ring); if (msm_ring->ring_bo) fd_bo_del(msm_ring->ring_bo); + free(msm_ring->submit.relocs); + free(msm_ring->submit.cmds); + free(msm_ring->submit.bos); + free(msm_ring->bos); + free(msm_ring->rings); free(msm_ring); } |