X-Git-Url: http://git.ipfire.org/?a=blobdiff_plain;f=t%2Fhelper%2Ftest-hashmap.c;h=2475663b49cefc08fe6a9d9d1c1cb3f7a551cc24;hb=6da1a258142ac2422c8c57c54b92eaed3c86226e;hp=f38706216f44c3c881f1d52b250fe74d5140bb37;hpb=33f20d82177871225e17d9dd44169a52a36c9f1d;p=thirdparty%2Fgit.git diff --git a/t/helper/test-hashmap.c b/t/helper/test-hashmap.c index f38706216f..2475663b49 100644 --- a/t/helper/test-hashmap.c +++ b/t/helper/test-hashmap.c @@ -110,7 +110,7 @@ static void perf_hashmap(unsigned int method, unsigned int rounds) hashmap_add(&map, &entries[i]->ent); } - hashmap_free(&map); + hashmap_clear(&map); } } else { /* test map lookups */ @@ -130,7 +130,7 @@ static void perf_hashmap(unsigned int method, unsigned int rounds) } } - hashmap_free(&map); + hashmap_clear(&map); } } @@ -262,6 +262,6 @@ int cmd__hashmap(int argc, const char **argv) } strbuf_release(&line); - hashmap_free_entries(&map, struct test_entry, ent); + hashmap_clear_and_free(&map, struct test_entry, ent); return 0; }