aux/trace: rzalloc the context struct

this has problems if pointers are garbage

cc: mesa-stable

Reviewed-by: Adam Jackson <ajax@redhat.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/14854>
This commit is contained in:
Mike Blumenkrantz 2022-01-27 13:51:06 -05:00 committed by Marge Bot
parent f1cdaf36df
commit 8142fc5a45

View file

@ -2265,7 +2265,7 @@ trace_context_create(struct trace_screen *tr_scr,
if (!trace_enabled())
goto error1;
tr_ctx = ralloc(NULL, struct trace_context);
tr_ctx = rzalloc(NULL, struct trace_context);
if (!tr_ctx)
goto error1;