summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorNicolai Hähnle <[email protected]>2017-10-10 13:58:45 +0200
committerNicolai Hähnle <[email protected]>2017-10-10 13:58:45 +0200
commitb041bf9f4b7b3ea5c787937d5f0cba14ab7dd532 (patch)
treed80fbf9671f77f5a40a8109cef48d0b9b72d7235
parent83c54a1402cfe495d79d151d94277996608197bf (diff)
disk_cache: fix a memory leak
Reviewed-by: Marek Olšák <[email protected]>
-rw-r--r--src/util/disk_cache.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/util/disk_cache.c b/src/util/disk_cache.c
index 17913a913bd..63fd8e1f93a 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)