File tree Expand file tree Collapse file tree 1 file changed +3
-2
lines changed Expand file tree Collapse file tree 1 file changed +3
-2
lines changed Original file line number Diff line number Diff line change @@ -339,7 +339,7 @@ static void fscache_clear(struct fscache *cache)
339
339
mem_pool_discard (cache -> mem_pool , 0 );
340
340
cache -> mem_pool = NULL ;
341
341
mem_pool_init (& cache -> mem_pool , 0 );
342
- hashmap_free ( & cache -> map , 0 );
342
+ free ( cache -> map . table );
343
343
hashmap_init (& cache -> map , (hashmap_cmp_fn )fsentry_cmp , NULL , 0 );
344
344
cache -> lstat_requests = cache -> opendir_requests = 0 ;
345
345
cache -> fscache_misses = cache -> fscache_requests = 0 ;
@@ -515,7 +515,8 @@ void fscache_disable(void)
515
515
cache -> lstat_requests , cache -> opendir_requests ,
516
516
cache -> fscache_requests , cache -> fscache_misses );
517
517
mem_pool_discard (cache -> mem_pool , 0 );
518
- hashmap_free (& cache -> map , 0 );
518
+ free (cache -> map .table );
519
+ memset (& cache -> map , 0 , sizeof (cache -> map ));
519
520
free (cache );
520
521
}
521
522
You can’t perform that action at this time.
0 commit comments