disk_cache: fix a memory leak
authorNicolai Hähnle <nicolai.haehnle@amd.com>
Tue, 10 Oct 2017 11:58:45 +0000 (13:58 +0200)
committerNicolai Hähnle <nicolai.haehnle@amd.com>
Tue, 10 Oct 2017 11:58:45 +0000 (13:58 +0200)
Reviewed-by: Marek Olšák <marek.olsak@amd.com>
src/util/disk_cache.c

index 17913a913bd6db3a93aaed848064003fa6802ca9..63fd8e1f93a8cb1a3185ccd5ca26abaaa44165ae 100644 (file)
@@ -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)