glsl: Fix blob memory leak

Reviewed-by: Timothy Arceri <tarceri@itsqueeze.com>
This commit is contained in:
Bartosz Tomczyk
2017-04-03 19:39:19 +02:00
committed by Timothy Arceri
parent a4c4efad89
commit bcb63ee63e
4 changed files with 17 additions and 6 deletions

View File

@@ -1273,7 +1273,7 @@ shader_cache_write_program_metadata(struct gl_context *ctx,
disk_cache_put(cache, prog->data->sha1, metadata->data, metadata->size);
free(metadata);
blob_destroy(metadata);
if (ctx->_Shader->Flags & GLSL_CACHE_INFO) {
_mesa_sha1_format(sha1_buf, prog->data->sha1);