Commit a43bcd2c by Patrick Steinhardt

odb: fix memory leaks due to not freeing hash context

parent 028a2806
......@@ -1373,6 +1373,8 @@ int git_odb_open_wstream(
(*stream)->received_bytes = 0;
done:
if (error)
git__free(ctx);
return error;
}
......
......@@ -1030,6 +1030,7 @@ done:
git_futils_mmap_free(&stream->map);
git_zstream_free(&stream->zstream);
git_hash_ctx_cleanup(hash_ctx);
git__free(hash_ctx);
git__free(stream);
}
......
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