]> git.ipfire.org Git - thirdparty/git.git/blobdiff - patch-ids.c
hashmap: introduce hashmap_free_entries
[thirdparty/git.git] / patch-ids.c
index 75f8c9f1a11e05e8cd6145241178d3b0cae62e40..af17828e336b2ddb2da9a5b7fbeccabd5bb32282 100644 (file)
@@ -71,7 +71,7 @@ int init_patch_ids(struct repository *r, struct patch_ids *ids)
 
 int free_patch_ids(struct patch_ids *ids)
 {
-       hashmap_free(&ids->patches, 1);
+       hashmap_free_entries(&ids->patches, struct patch_id, ent);
        return 0;
 }