aboutsummaryrefslogtreecommitdiff
path: root/http-fetch.c
diff options
context:
space:
mode:
authorSean <seanlkml@sympatico.ca>2006-05-20 18:46:33 -0400
committerJunio C Hamano <junkio@cox.net>2006-05-22 18:52:58 -0700
commit07001f95a60149619bed62af7ad59052ace7ac92 (patch)
tree4db15285b6204ef93f464a931dc62bb62e479ef5 /http-fetch.c
parent7f7e6eacf999cb53771426e561589f721e6c9974 (diff)
downloadgit-07001f95a60149619bed62af7ad59052ace7ac92.tar.gz
git-07001f95a60149619bed62af7ad59052ace7ac92.tar.xz
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>
Diffstat (limited to 'http-fetch.c')
-rw-r--r--http-fetch.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/http-fetch.c b/http-fetch.c
index 861644b27..178f1ee31 100644
--- a/http-fetch.c
+++ b/http-fetch.c
@@ -1269,10 +1269,10 @@ int main(int argc, char **argv)
if (pull(commit_id))
rc = 1;
- curl_slist_free_all(no_pragma_header);
-
http_cleanup();
+ curl_slist_free_all(no_pragma_header);
+
if (corrupt_object_found) {
fprintf(stderr,
"Some loose object were found to be corrupt, but they might be just\n"