@matheusbsbs / matheus-bagliano / commits / 07001f95a6
Fork 0

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>

Sean committed May 20, 2006 at 18:46 UTC 07001f95a60149619bed62af7ad59052ace7ac92
1 file changed +2 -2
http-fetch.c
+2 -2
@@ -1269,10 +1269,10 @@ int main(int argc, char **argv)
1269 if (pull(commit_id))
1270 rc = 1;
1271
1272 - curl_slist_free_all(no_pragma_header);
1273 -
1272 http_cleanup();
1273
1274 + curl_slist_free_all(no_pragma_header);
1275 +
1276 if (corrupt_object_found) {
1277 fprintf(stderr,
1278 "Some loose object were found to be corrupt, but they might be just\n"