repository: plug memory leak

cc @carlosmn
This commit is contained in:
Vicent Marti 2015-10-28 10:15:24 +01:00
parent 1e5e02b4f4
commit 4f971852d5

View File

@ -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;