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
|
@ -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…
Reference in New Issue