Mesa (master): disk_cache: fix a memory leak

Nicolai Hähnle nh at kemper.freedesktop.org
Tue Oct 10 12:03:59 UTC 2017


Module: Mesa
Branch: master
Commit: b041bf9f4b7b3ea5c787937d5f0cba14ab7dd532
URL:    http://cgit.freedesktop.org/mesa/mesa/commit/?id=b041bf9f4b7b3ea5c787937d5f0cba14ab7dd532

Author: Nicolai Hähnle <nicolai.haehnle at amd.com>
Date:   Tue Oct 10 13:58:45 2017 +0200

disk_cache: fix a memory leak

Reviewed-by: Marek Olšák <marek.olsak at amd.com>

---

 src/util/disk_cache.c | 1 +
 1 file changed, 1 insertion(+)

diff --git a/src/util/disk_cache.c b/src/util/disk_cache.c
index 17913a913b..63fd8e1f93 100644
--- a/src/util/disk_cache.c
+++ b/src/util/disk_cache.c
@@ -1145,6 +1145,7 @@ disk_cache_get(struct disk_cache *cache, const cache_key key, size_t *size)
 
    free(data);
    free(filename);
+   free(file_header);
    close(fd);
 
    if (size)




More information about the mesa-commit mailing list