Module: Mesa Branch: master Commit: dc265008c70b76b39b86a4d5b0f9da69d12eb31d URL: http://cgit.freedesktop.org/mesa/mesa/commit/?id=dc265008c70b76b39b86a4d5b0f9da69d12eb31d
Author: Mike Blumenkrantz <[email protected]> Date: Tue Apr 13 18:21:28 2021 -0400 aux/trace: use ralloc_free for ralloc()ed state pointers Reviewed-by: Vasily Khoruzhick <[email protected]> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/10221> --- src/gallium/auxiliary/driver_trace/tr_context.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/gallium/auxiliary/driver_trace/tr_context.c b/src/gallium/auxiliary/driver_trace/tr_context.c index 93f72b8246c..787db7b5f0b 100644 --- a/src/gallium/auxiliary/driver_trace/tr_context.c +++ b/src/gallium/auxiliary/driver_trace/tr_context.c @@ -366,7 +366,7 @@ trace_context_delete_blend_state(struct pipe_context *_pipe, if (state) { struct hash_entry *he = _mesa_hash_table_search(&tr_ctx->blend_states, state); if (he) { - free(he->data); + ralloc_free(he->data); _mesa_hash_table_remove(&tr_ctx->blend_states, he); } } @@ -516,7 +516,7 @@ trace_context_delete_rasterizer_state(struct pipe_context *_pipe, if (state) { struct hash_entry *he = _mesa_hash_table_search(&tr_ctx->rasterizer_states, state); if (he) { - free(he->data); + ralloc_free(he->data); _mesa_hash_table_remove(&tr_ctx->rasterizer_states, he); } } @@ -596,7 +596,7 @@ trace_context_delete_depth_stencil_alpha_state(struct pipe_context *_pipe, if (state) { struct hash_entry *he = _mesa_hash_table_search(&tr_ctx->depth_stencil_alpha_states, state); if (he) { - free(he->data); + ralloc_free(he->data); _mesa_hash_table_remove(&tr_ctx->depth_stencil_alpha_states, he); } } _______________________________________________ mesa-commit mailing list [email protected] https://lists.freedesktop.org/mailman/listinfo/mesa-commit
