]> git.ipfire.org Git - thirdparty/git.git/blobdiff - config.c
hashmap: introduce hashmap_free_entries
[thirdparty/git.git] / config.c
index 8433f7437168217124ce55fb785576af0f300100..4d05dbc15a7a6f1b501874774138cb634c81b273 100644 (file)
--- a/config.c
+++ b/config.c
@@ -1948,7 +1948,7 @@ void git_configset_clear(struct config_set *cs)
                free(entry->key);
                string_list_clear(&entry->value_list, 1);
        }
-       hashmap_free(&cs->config_hash, 1);
+       hashmap_free_entries(&cs->config_hash, struct config_set_element, ent);
        cs->hash_initialized = 0;
        free(cs->list.items);
        cs->list.nr = 0;