Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Free parent and ref in lg2_commit before returning. #6219

Merged
merged 1 commit into from Feb 18, 2022

Conversation

apnadkarni
Copy link
Contributor

@apnadkarni apnadkarni commented Feb 14, 2022

The example in examples\commit.c does not free the parent and ref objects. This is harmless here as the program exits anyways but for pedagogic purposes perhaps these should be explicitly freed. (I'm actually assuming they need to be freed as per the git_revparse_ext docs)

@ethomson
Copy link
Member

Looks good - thanks @apnadkarni!

@ethomson ethomson merged commit 1afad26 into libgit2:main Feb 18, 2022
@ethomson ethomson mentioned this pull request Feb 18, 2022
@ethomson ethomson added the bug label Jun 23, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants