etnaviv: drm: fix BO array leaks

Free the both arrays tracking BOs when the etna_cmd_stream is destroyed.

CC: mesa-stable
Signed-off-by: Lucas Stach <l.stach@pengutronix.de>
Reviewed-by: Christian Gmeiner <christian.gmeiner@gmail.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/20940>
This commit is contained in:
Lucas Stach
2023-01-26 12:38:35 +01:00
committed by Marge Bot
parent 0d7f8aa249
commit 3156b15f70

View File

@@ -135,6 +135,8 @@ void etna_cmd_stream_del(struct etna_cmd_stream *stream)
_mesa_hash_table_destroy(priv->bo_table, NULL);
free(stream->buffer);
free(priv->bos);
free(priv->submit.bos);
free(priv->submit.relocs);
free(priv->submit.pmrs);
free(priv);