summaryrefslogtreecommitdiffstats
path: root/src/hdcache.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/hdcache.c')
-rw-r--r--src/hdcache.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/src/hdcache.c b/src/hdcache.c
index ba32723..87648f7 100644
--- a/src/hdcache.c
+++ b/src/hdcache.c
@@ -217,8 +217,7 @@ static int cache_clean(disk_t *disk_car)
for(i=0;i<CACHE_BUFFER_NBR;i++)
{
struct cache_buffer_struct *cache=&data->cache[i];
- if(cache->buffer!=NULL)
- free(cache->buffer);
+ free(cache->buffer);
}
free(data->disk_car);
free(disk_car->data);