diff options
author | Kenneth Graunke <[email protected]> | 2019-06-04 22:02:24 -0700 |
---|---|---|
committer | Kenneth Graunke <[email protected]> | 2019-06-04 23:53:57 -0700 |
commit | 8d4f68ee20353aa292c83571916f1385f0228bba (patch) | |
tree | d662487bbcd3e339642863dcdca943ff531984bb | |
parent | bfa9f56a2a9637842e2012fd00968241bb0311ab (diff) |
iris: Free the buffer when reading from the disk cache.
-rw-r--r-- | src/gallium/drivers/iris/iris_disk_cache.c | 11 |
1 files changed, 8 insertions, 3 deletions
diff --git a/src/gallium/drivers/iris/iris_disk_cache.c b/src/gallium/drivers/iris/iris_disk_cache.c index 797913613f2..675f0095ab6 100644 --- a/src/gallium/drivers/iris/iris_disk_cache.c +++ b/src/gallium/drivers/iris/iris_disk_cache.c @@ -213,9 +213,14 @@ iris_disk_cache_retrieve(struct iris_context *ice, /* Upload our newly read shader to the in-memory program cache and * return it to the caller. */ - return iris_upload_shader(ice, stage, key_size, prog_key, assembly, - prog_data, so_decls, system_values, - num_system_values, num_cbufs, &bt); + struct iris_compiled_shader *shader = + iris_upload_shader(ice, stage, key_size, prog_key, assembly, + prog_data, so_decls, system_values, + num_system_values, num_cbufs, &bt); + + free(buffer); + + return shader; #else return NULL; #endif |