#include "cache.h"
#include "repository.h"
+#include "config.h"
/* The main repository */
static struct repository the_repo;
repo->index_file = NULL;
free(repo->worktree);
repo->worktree = NULL;
+
+ if (repo->config) {
+ git_configset_clear(repo->config);
+ free(repo->config);
+ repo->config = NULL;
+ }
}