Skip to content

Fix memory leaks#4180

Merged
pks-t merged 2 commits intolibgit2:masterfrom
pks-t:pks/pass-blame-fix
Mar 28, 2017
Merged

Fix memory leaks#4180
pks-t merged 2 commits intolibgit2:masterfrom
pks-t:pks/pass-blame-fix

Conversation

@pks-t
Copy link
Copy Markdown
Member

@pks-t pks-t commented Mar 24, 2017

The recent addition of an error code to pass_whole_blame in ff8d2eb
(blame_git: check return value of object lookup, 2017-03-20) introduced
a spurious goto. Remove it.

Just noticed a few thousands of new memory leaks in the CI. The error is trivial and kind of embarassing - I'm surprised the compiler didn't throw any warning for unreachable code.

The recent addition of an error code to `pass_whole_blame` in ff8d2eb
(blame_git: check return value of object lookup, 2017-03-20) introduced
a spurious goto. Remove it.
@pks-t pks-t changed the title blame_git: remove spuriuous goto Fix memory leaks Mar 24, 2017
@pks-t
Copy link
Copy Markdown
Member Author

pks-t commented Mar 24, 2017

Also added another commit fixing a new memory leak in git_worktree_open_from_repository.

@pks-t pks-t merged commit a25df00 into libgit2:master Mar 28, 2017
@pks-t pks-t deleted the pks/pass-blame-fix branch March 28, 2017 06:41
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant