summaryrefslogtreecommitdiffstats
path: root/src/amd
diff options
context:
space:
mode:
authorSamuel Pitoiset <[email protected]>2017-09-01 14:07:43 +0200
committerSamuel Pitoiset <[email protected]>2017-09-05 21:36:44 +0200
commit7f952eb9314488a37f76a123067ba6b71b91ae88 (patch)
treec4a1aa7eafefcdf02263dabfa6f7e5bd26189fee /src/amd
parentc12ef63b6940d35584ca8a808c70ee926a02569d (diff)
radv: fix a memleak when compiling the GS copy shader
Found by inspection. Signed-off-by: Samuel Pitoiset <[email protected]> Reviewed-by: Eric Engestrom <[email protected]> Reviewed-by: Bas Nieuwenhuizen <[email protected]>
Diffstat (limited to 'src/amd')
-rw-r--r--src/amd/vulkan/radv_pipeline.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/amd/vulkan/radv_pipeline.c b/src/amd/vulkan/radv_pipeline.c
index f2d1b491b70..c090b8e2f0e 100644
--- a/src/amd/vulkan/radv_pipeline.c
+++ b/src/amd/vulkan/radv_pipeline.c
@@ -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);