Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 4f97185

Browse files
committed
repository: plug memory leak
cc @carlosmn
1 parent 1e5e02b commit 4f97185

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

src/repository.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -689,6 +689,7 @@ int git_repository_config__weakptr(git_config **out, git_repository *repo)
689689
git_buf_free(&global_buf);
690690
git_buf_free(&xdg_buf);
691691
git_buf_free(&system_buf);
692+
git_buf_free(&programdata_buf);
692693
}
693694

694695
*out = repo->_config;

0 commit comments

Comments
 (0)