Skip to content

odb: conditional git_hash_ctx_cleanup in git_odb_stream#6836

Merged
ethomson merged 1 commit into
libgit2:mainfrom
gensmusic:main
Jun 25, 2024
Merged

odb: conditional git_hash_ctx_cleanup in git_odb_stream#6836
ethomson merged 1 commit into
libgit2:mainfrom
gensmusic:main

Conversation

@gensmusic
Copy link
Copy Markdown
Contributor

As discussed in #6835

When git_odb_stream is a read stream, hash_ctx is not used. Therefore, check if hash_ctx can be freed during the release. This allows implementers of custom ODB backends to not worry about the creation of hash_ctx for now.

When `git_odb_stream` is a read stream, `hash_ctx` is not used.
Therefore, check if `hash_ctx` can be freed during the release.
This allows implementers of custom ODB backends to not worry about
the creation of `hash_ctx` for now.
@ethomson ethomson merged commit 585210a into libgit2:main Jun 25, 2024
@ethomson
Copy link
Copy Markdown
Member

Thanks!

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.

2 participants