summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorCarlos Martín Nieto <cmn@dwim.me>2012-10-16 17:58:19 +0200
committerCarlos Martín Nieto <cmn@dwim.me>2012-10-16 17:58:19 +0200
commita891841850d50d68842c88f57cd3f7c9cbdff38f (patch)
treeffec9fe8ad88c65471a6e374a59715ae2bb7bb3d /src
parent52748f7b9f039b94e212c41d8a4f46b50b917962 (diff)
downloadlibgit2-a891841850d50d68842c88f57cd3f7c9cbdff38f.tar.gz
config: also free the XDG buffer
Diffstat (limited to 'src')
-rw-r--r--src/repository.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/repository.c b/src/repository.c
index 96370c771..5f7fa3cea 100644
--- a/src/repository.c
+++ b/src/repository.c
@@ -513,6 +513,7 @@ int git_repository_config__weakptr(git_config **out, git_repository *repo)
res = load_config(&repo->_config, repo, global_config_path, xdg_config_path, system_config_path);
git_buf_free(&global_buf);
+ git_buf_free(&xdg_buf);
git_buf_free(&system_buf);
if (res < 0)