diff options
author | Jordan Justen <[email protected]> | 2017-11-03 17:18:32 -0700 |
---|---|---|
committer | Timothy Arceri <[email protected]> | 2017-12-08 16:59:25 +1100 |
commit | 2e28494af2cbeb555856e984a1ff5ef2ac96411c (patch) | |
tree | 161269bca648858021364e7047a603d0e4301e3e | |
parent | 25b3ce6e3ba4b2da2d278712b95f883807363070 (diff) |
i965: Fix memory leak when serializing nir
Signed-off-by: Jordan Justen <[email protected]>
Reviewed-by: Timothy Arceri <[email protected]>
-rw-r--r-- | src/mesa/drivers/dri/i965/brw_program.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/mesa/drivers/dri/i965/brw_program.c b/src/mesa/drivers/dri/i965/brw_program.c index be839ab38a2..6aa41009e74 100644 --- a/src/mesa/drivers/dri/i965/brw_program.c +++ b/src/mesa/drivers/dri/i965/brw_program.c @@ -796,6 +796,7 @@ brw_program_serialize_nir(struct gl_context *ctx, struct gl_program *prog) prog->driver_cache_blob = ralloc_size(NULL, writer.size); memcpy(prog->driver_cache_blob, writer.data, writer.size); prog->driver_cache_blob_size = writer.size; + blob_finish(&writer); } void |