]> git.ipfire.org Git - thirdparty/git.git/blobdiff - t/helper/test-hashmap.c
hashmap: provide deallocation function names
[thirdparty/git.git] / t / helper / test-hashmap.c
index f38706216f44c3c881f1d52b250fe74d5140bb37..2475663b49cefc08fe6a9d9d1c1cb3f7a551cc24 100644 (file)
@@ -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;
 }