mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-02-24 05:10:31 +01:00
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:
parent
f1cdaf36df
commit
8142fc5a45
1 changed files with 1 additions and 1 deletions
|
|
@ -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;
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue