Skip to content

Commit 692f23c

Browse files
dschoGit for Windows Build Agent
authored and
Git for Windows Build Agent
committed
fixup??? mingw: add a cache below mingw's lstat and dirent implementations
This is required by `en/strmap`. Note: this is _not_ the correct target commit for _this_ fixup, but rather the first of the FSCache commits that need to be adjusted for `en/strmap`. Signed-off-by: Johannes Schindelin <[email protected]>
1 parent 608a6fa commit 692f23c

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

compat/win32/fscache.c

+2-2
Original file line numberDiff line numberDiff line change
@@ -357,7 +357,7 @@ static void fscache_clear(struct fscache *cache)
357357
{
358358
mem_pool_discard(&cache->mem_pool, 0);
359359
mem_pool_init(&cache->mem_pool, 0);
360-
hashmap_free(&cache->map);
360+
hashmap_clear(&cache->map);
361361
hashmap_init(&cache->map, (hashmap_cmp_fn)fsentry_cmp, NULL, 0);
362362
cache->lstat_requests = cache->opendir_requests = 0;
363363
cache->fscache_misses = cache->fscache_requests = 0;
@@ -534,7 +534,7 @@ void fscache_disable(void)
534534
cache->lstat_requests, cache->opendir_requests,
535535
cache->fscache_requests, cache->fscache_misses);
536536
mem_pool_discard(&cache->mem_pool, 0);
537-
hashmap_free(&cache->map);
537+
hashmap_clear(&cache->map);
538538
free(cache);
539539
}
540540

0 commit comments

Comments
 (0)