]> git.ipfire.org Git - thirdparty/git.git/blobdiff - submodule-config.c
hashmap: introduce hashmap_free_entries
[thirdparty/git.git] / submodule-config.c
index a289d195f6ab9476f5b7a36796f5e58b8deb9a4e..5462acc8ecbb204f110941775a5ae696f6e6c7e0 100644 (file)
@@ -103,8 +103,8 @@ static void submodule_cache_clear(struct submodule_cache *cache)
                                struct submodule_entry, ent /* member name */)
                free_one_config(entry);
 
-       hashmap_free(&cache->for_path, 1);
-       hashmap_free(&cache->for_name, 1);
+       hashmap_free_entries(&cache->for_path, struct submodule_entry, ent);
+       hashmap_free_entries(&cache->for_name, struct submodule_entry, ent);
        cache->initialized = 0;
        cache->gitmodules_read = 0;
 }