Remove possible segfault in http-fetch.
Free the curl string lists after running http_cleanup to avoid an occasional segfault in the curl library. Seems to only occur if the website returns a 405 error. Signed-off-by: Sean Estabrooks <seanlkml@sympatico.ca> Signed-off-by: Junio C Hamano <junkio@cox.net>
This commit is contained in:
@ -1269,10 +1269,10 @@ int main(int argc, char **argv)
|
|||||||
if (pull(commit_id))
|
if (pull(commit_id))
|
||||||
rc = 1;
|
rc = 1;
|
||||||
|
|
||||||
curl_slist_free_all(no_pragma_header);
|
|
||||||
|
|
||||||
http_cleanup();
|
http_cleanup();
|
||||||
|
|
||||||
|
curl_slist_free_all(no_pragma_header);
|
||||||
|
|
||||||
if (corrupt_object_found) {
|
if (corrupt_object_found) {
|
||||||
fprintf(stderr,
|
fprintf(stderr,
|
||||||
"Some loose object were found to be corrupt, but they might be just\n"
|
"Some loose object were found to be corrupt, but they might be just\n"
|
||||||
|
Reference in New Issue
Block a user