diff options
author | Bartosz Tomczyk <[email protected]> | 2017-04-03 19:39:19 +0200 |
---|---|---|
committer | Timothy Arceri <[email protected]> | 2017-04-04 09:22:29 +1000 |
commit | bcb63ee63e0a8bec837ee3712e1d306409455a4a (patch) | |
tree | 54ba8c62bf404fe17bbfceb7fc6d7067d87550f5 /src/compiler/glsl/shader_cache.cpp | |
parent | a4c4efad89eceb26cf82f4643ce6a4eb656072a6 (diff) |
glsl: Fix blob memory leak
Reviewed-by: Timothy Arceri <[email protected]>
Diffstat (limited to 'src/compiler/glsl/shader_cache.cpp')
-rw-r--r-- | src/compiler/glsl/shader_cache.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/compiler/glsl/shader_cache.cpp b/src/compiler/glsl/shader_cache.cpp index ea1bc01f028..f5e6a22bb9e 100644 --- a/src/compiler/glsl/shader_cache.cpp +++ b/src/compiler/glsl/shader_cache.cpp @@ -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); |