diff options
author | Samuel Pitoiset <[email protected]> | 2017-09-01 14:07:43 +0200 |
---|---|---|
committer | Samuel Pitoiset <[email protected]> | 2017-09-05 21:36:44 +0200 |
commit | 7f952eb9314488a37f76a123067ba6b71b91ae88 (patch) | |
tree | c4a1aa7eafefcdf02263dabfa6f7e5bd26189fee | |
parent | c12ef63b6940d35584ca8a808c70ee926a02569d (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]>
-rw-r--r-- | src/amd/vulkan/radv_pipeline.c | 2 |
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); |