summaryrefslogtreecommitdiff
path: root/src/cache.c
diff options
context:
space:
mode:
authorPatrick Steinhardt <ps@pks.im>2017-01-25 14:16:35 +0100
committerPatrick Steinhardt <ps@pks.im>2017-02-17 11:41:06 +0100
commitc37b069b9f324c3e68ca5ddfce9588aabe97f346 (patch)
tree52520853cee60379c1605299126c363ad5c7aca0 /src/cache.c
parenta853c5272359f7b5b1f0648cf16cefe7434840b2 (diff)
downloadlibgit2-c37b069b9f324c3e68ca5ddfce9588aabe97f346.tar.gz
khash: avoid using `kh_clear` directly
Diffstat (limited to 'src/cache.c')
-rw-r--r--src/cache.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/cache.c b/src/cache.c
index 79885c41e..0309c3d8e 100644
--- a/src/cache.c
+++ b/src/cache.c
@@ -88,7 +88,7 @@ static void clear_cache(git_cache *cache)
git_cached_obj_decref(evict);
});
- kh_clear(oid, cache->map);
+ git_oidmap_clear(cache->map);
git_atomic_ssize_add(&git_cache__current_storage, -cache->used_memory);
cache->used_memory = 0;
}