MCPcopy Index your code
hub / github.com/git/git / release_http_object_request

Function release_http_object_request

http.c:3014–3034  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

3012}
3013
3014void release_http_object_request(struct http_object_request **freq_p)
3015{
3016 struct http_object_request *freq = *freq_p;
3017 if (freq->localfile != -1) {
3018 close(freq->localfile);
3019 freq->localfile = -1;
3020 }
3021 FREE_AND_NULL(freq->url);
3022 if (freq->slot) {
3023 freq->slot->callback_func = NULL;
3024 freq->slot->callback_data = NULL;
3025 release_active_slot(freq->slot);
3026 freq->slot = NULL;
3027 }
3028 curl_slist_free_all(freq->headers);
3029 strbuf_release(&freq->tmpfile);
3030 git_inflate_end(&freq->stream);
3031
3032 free(freq);
3033 *freq_p = NULL;
3034}

Callers 6

start_object_requestFunction · 0.85
process_object_responseFunction · 0.85
fetch_objectFunction · 0.85
start_fetch_looseFunction · 0.85
finish_requestFunction · 0.85

Calls 3

release_active_slotFunction · 0.85
strbuf_releaseFunction · 0.85
git_inflate_endFunction · 0.85

Tested by

no test coverage detected