git_inflate_init(&freq->stream);
git_hash_init(&freq->c, the_hash_algo);
- freq->hash_ctx_valid = 1;
freq->url = get_remote_object_url(base_url, hex, 0);
}
git_hash_final_oid(&freq->real_oid, &freq->c);
- freq->hash_ctx_valid = 0;
if (freq->zret != Z_STREAM_END) {
unlink_or_warn(freq->tmpfile.buf);
return -1;
curl_slist_free_all(freq->headers);
strbuf_release(&freq->tmpfile);
git_inflate_end(&freq->stream);
- if (freq->hash_ctx_valid)
- git_hash_discard(&freq->c);
+ git_hash_discard(&freq->c);
free(freq);
*freq_p = NULL;