aboutsummaryrefslogtreecommitdiffstats
path: root/src/util/disk_cache.c
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
commit76fcede3f44d5f6eaf9b99ef80914c326387a3e5 (patch)
tree00de82cdc7c5d3bcb62a827c945ed6e9cdd1ba35 /src/util/disk_cache.c
parentb041bf9f4b7b3ea5c787937d5f0cba14ab7dd532 (diff)
disk_cache: remove unnecessary NULL-pointer guards
Reviewed-by: Marek Olšák <[email protected]>
Diffstat (limited to 'src/util/disk_cache.c')
-rw-r--r--src/util/disk_cache.c6
1 files changed, 2 insertions, 4 deletions
diff --git a/src/util/disk_cache.c b/src/util/disk_cache.c
index 63fd8e1f93a..e38cacb259b 100644
--- a/src/util/disk_cache.c
+++ b/src/util/disk_cache.c
@@ -987,10 +987,8 @@ cache_put(void *job, int thread_index)
*/
if (fd != -1)
close(fd);
- if (filename_tmp)
- free(filename_tmp);
- if (filename)
- free(filename);
+ free(filename_tmp);
+ free(filename);
}
void