summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorVicent Marti <tanoku@gmail.com>2015-10-28 10:15:24 +0100
committerVicent Marti <tanoku@gmail.com>2015-10-28 10:15:24 +0100
commit4f971852d5b06d61e7a8782edd76bea876e79ed8 (patch)
tree8b74c9f7667572581c4056eb1e5ea4b2ba4f85c9 /src
parent1e5e02b4f47779fe3733b1a6ab24a6ca13099ec3 (diff)
downloadlibgit2-4f971852d5b06d61e7a8782edd76bea876e79ed8.tar.gz
repository: plug memory leak
cc @carlosmn
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 38d18693a..c61d0e4f0 100644
--- a/src/repository.c
+++ b/src/repository.c
@@ -689,6 +689,7 @@ int git_repository_config__weakptr(git_config **out, git_repository *repo)
git_buf_free(&global_buf);
git_buf_free(&xdg_buf);
git_buf_free(&system_buf);
+ git_buf_free(&programdata_buf);
}
*out = repo->_config;