Commit 4f971852d5b06d61e7a8782edd76bea876e79ed8

Vicent Marti 2015-10-28T10:15:24

repository: plug memory leak cc @carlosmn

1
2
3
4
5
6
7
8
9
10
11
12
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;