mirror of
https://github.com/libgit2/libgit2.git
synced 2026-06-22 06:26:26 +00:00
Merge pull request #6836 from gensmusic/main
odb: conditional git_hash_ctx_cleanup in git_odb_stream
This commit is contained in:
@@ -1796,7 +1796,8 @@ void git_odb_stream_free(git_odb_stream *stream)
|
||||
if (stream == NULL)
|
||||
return;
|
||||
|
||||
git_hash_ctx_cleanup(stream->hash_ctx);
|
||||
if (stream->hash_ctx)
|
||||
git_hash_ctx_cleanup(stream->hash_ctx);
|
||||
git__free(stream->hash_ctx);
|
||||
stream->free(stream);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user