repository: plug memory leak cc @carlosmn
diff --git a/src/repository.c b/src/repository.c
index 38d1869..c61d0e4 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;