mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-05-05 05:18:08 +02:00
radv: fix a memleak when compiling the GS copy shader
Found by inspection. Signed-off-by: Samuel Pitoiset <samuel.pitoiset@gmail.com> Reviewed-by: Eric Engestrom <eric.engestrom@imgtec.com> Reviewed-by: Bas Nieuwenhuizen <bas@basnieuwenhuizen.nl>
This commit is contained in:
parent
c12ef63b69
commit
7f952eb931
1 changed files with 2 additions and 0 deletions
|
|
@ -618,6 +618,8 @@ radv_pipeline_compile(struct radv_pipeline *pipeline,
|
|||
gs_copy_code,
|
||||
gs_copy_code_size);
|
||||
}
|
||||
|
||||
free(gs_copy_code);
|
||||
}
|
||||
if (!module->nir)
|
||||
ralloc_free(nir);
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue