diff options
author | Nicolai Hähnle <[email protected]> | 2017-10-10 13:58:45 +0200 |
---|---|---|
committer | Nicolai Hähnle <[email protected]> | 2017-10-10 13:58:45 +0200 |
commit | 76fcede3f44d5f6eaf9b99ef80914c326387a3e5 (patch) | |
tree | 00de82cdc7c5d3bcb62a827c945ed6e9cdd1ba35 /src/util | |
parent | b041bf9f4b7b3ea5c787937d5f0cba14ab7dd532 (diff) |
disk_cache: remove unnecessary NULL-pointer guards
Reviewed-by: Marek Olšák <[email protected]>
Diffstat (limited to 'src/util')
-rw-r--r-- | src/util/disk_cache.c | 6 |
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 |