freedreno/ir3: Fix crash in shader compile fail path

Fixes: 74140c2e85 ("freedreno/ir3: convert over to ralloc")
Signed-off-by: Rob Clark <robdclark@chromium.org>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/7612>
(cherry picked from commit 4b65c09d86)
This commit is contained in:
Rob Clark 2020-11-12 12:39:28 -08:00 committed by Dylan Baker
parent cd8081867f
commit bf4a4d61a0
2 changed files with 2 additions and 2 deletions

View file

@ -2299,7 +2299,7 @@
"description": "freedreno/ir3: Fix crash in shader compile fail path",
"nominated": true,
"nomination_type": 1,
"resolution": 0,
"resolution": 1,
"master_sha": null,
"because_sha": "74140c2e859c15593a379cbde96b1048f2ad69dc"
},

View file

@ -986,7 +986,7 @@ void * ir3_assemble(struct ir3_shader_variant *v)
return ptr;
fail:
free(ptr);
ralloc_free(ptr);
return NULL;
}