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>
(cherry picked from commit 8142fc5a45)
This commit is contained in:
Mike Blumenkrantz 2022-01-27 13:51:06 -05:00 committed by Eric Engestrom
parent c31de8e007
commit 983da3104e
2 changed files with 2 additions and 2 deletions

View file

@ -1084,7 +1084,7 @@
"description": "aux/trace: rzalloc the context struct",
"nominated": true,
"nomination_type": 0,
"resolution": 0,
"resolution": 1,
"main_sha": null,
"because_sha": null
},

View file

@ -2191,7 +2191,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;