]> git.ipfire.org Git - thirdparty/git.git/blobdiff - config.c
Merge branch 'en/strmap'
[thirdparty/git.git] / config.c
index 2bdff4457be7d5b1e1fd5f6acb558ac41b946a8c..8f324ed3a6f6b8d516516e729afe627610051c22 100644 (file)
--- a/config.c
+++ b/config.c
@@ -1963,7 +1963,7 @@ void git_configset_clear(struct config_set *cs)
                free(entry->key);
                string_list_clear(&entry->value_list, 1);
        }
-       hashmap_free_entries(&cs->config_hash, struct config_set_element, ent);
+       hashmap_clear_and_free(&cs->config_hash, struct config_set_element, ent);
        cs->hash_initialized = 0;
        free(cs->list.items);
        cs->list.nr = 0;