Fix an emberrasing memory leak with the non-softpin submit/rb
implementation.
Fixes: f3cc0d27475 freedreno: import libdrm_freedreno + redesign submit
Signed-off-by: Rob Clark <robdclark@gmail.com>
cmd_free(struct msm_cmd *cmd)
{
fd_bo_del(cmd->ring_bo);
+ free(cmd->relocs);
free(cmd);
}
_mesa_set_destroy(msm_ring->u.ring_set, unref_rings);
+ free(msm_ring->u.reloc_bos);
free(msm_ring);
} else {
struct fd_submit *submit = msm_ring->u.submit;
cmd_free(msm_ring->u.cmds[i]);
}
+ free(msm_ring->u.cmds);
slab_free_st(&to_msm_submit(submit)->ring_pool, msm_ring);
}
}