From: Vadym Shovkoplias Date: Mon, 4 Dec 2017 09:47:33 +0000 (+0200) Subject: util/disk_cache: Remove unneeded free() on always null string X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=b2490a326c28652b85400da0e1bbff108167d140;p=mesa.git util/disk_cache: Remove unneeded free() on always null string At this point dc_job->cache_item_metadata.keys always equals NULL, so call to free() is useless Fixes: b86ecea3446 ("util/disk_cache: write cache item metadata to disk") Signed-off-by: Vadym Shovkoplias Reviewed-by: Eric Engestrom --- diff --git a/src/util/disk_cache.c b/src/util/disk_cache.c index e95406565e4..7ebfa8c045c 100644 --- a/src/util/disk_cache.c +++ b/src/util/disk_cache.c @@ -811,7 +811,6 @@ create_put_job(struct disk_cache *cache, const cache_key key, return dc_job; fail: - free(dc_job->cache_item_metadata.keys); free(dc_job); return NULL;