Skip to content

Commit c37b069

Browse files
committed
khash: avoid using kh_clear directly
1 parent a853c52 commit c37b069

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

src/cache.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -88,7 +88,7 @@ static void clear_cache(git_cache *cache)
8888
git_cached_obj_decref(evict);
8989
});
9090

91-
kh_clear(oid, cache->map);
91+
git_oidmap_clear(cache->map);
9292
git_atomic_ssize_add(&git_cache__current_storage, -cache->used_memory);
9393
cache->used_memory = 0;
9494
}

src/pack-objects.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -197,7 +197,7 @@ static void rehash(git_packbuilder *pb)
197197
size_t i;
198198
int ret;
199199

200-
kh_clear(oid, pb->object_ix);
200+
git_oidmap_clear(pb->object_ix);
201201
for (i = 0, po = pb->object_list; i < pb->nr_objects; i++, po++) {
202202
pos = kh_put(oid, pb->object_ix, &po->id, &ret);
203203
kh_value(pb->object_ix, pos) = po;

0 commit comments

Comments
 (0)