diff options
author | Lucas Stach <l.stach@pengutronix.de> | 2023-01-26 12:38:35 +0100 |
---|---|---|
committer | Marge Bot <emma+marge@anholt.net> | 2023-01-28 13:48:30 +0000 |
commit | 3156b15f70c83d954db9d8ffac90988c7b71a194 (patch) | |
tree | 18ea9d631d3f585d5fadfc482e984a95dd70b776 | |
parent | 0d7f8aa2499104b1d16deba32e4c25c342d1ce7d (diff) |
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>
-rw-r--r-- | src/etnaviv/drm/etnaviv_cmd_stream.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/etnaviv/drm/etnaviv_cmd_stream.c b/src/etnaviv/drm/etnaviv_cmd_stream.c index 3630d155d76..657ef0c0514 100644 --- a/src/etnaviv/drm/etnaviv_cmd_stream.c +++ b/src/etnaviv/drm/etnaviv_cmd_stream.c @@ -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); |