aboutsummaryrefslogtreecommitdiffstats
path: root/src/util
diff options
context:
space:
mode:
authorVadym Shovkoplias <[email protected]>2017-12-04 11:47:33 +0200
committerEric Engestrom <[email protected]>2017-12-07 11:50:41 +0000
commitb2490a326c28652b85400da0e1bbff108167d140 (patch)
tree65f6954a4620a03dc830685610d3d4cd7e8c88cd /src/util
parent392638d6b549dbed85ed2a82fa41d38336ac9938 (diff)
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 <[email protected]> Reviewed-by: Eric Engestrom <[email protected]>
Diffstat (limited to 'src/util')
-rw-r--r--src/util/disk_cache.c1
1 files changed, 0 insertions, 1 deletions
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;