Commit 09bfd5c7 authored by Rob Clark's avatar Rob Clark
Browse files

freedreno/msm: fix memory leak on ringbuffer free


Signed-off-by: default avatarRob Clark <robclark@freedesktop.org>
parent 9bdec97a
......@@ -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);
}
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment