Commit 08afdb57 by Joe Rabinoff

Removed one null check

parent 36f80742
......@@ -1028,12 +1028,11 @@ static int loose_backend__readstream(
done:
if (error < 0) {
if(stream && stream->map.data)
if(stream) {
git_futils_mmap_free(&stream->map);
if(stream)
git_zstream_free(&stream->zstream);
if(stream)
git__free(stream);
}
if(hash_ctx) {
git_hash_ctx_cleanup(hash_ctx);
git__free(hash_ctx);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment