X-Git-Url: https://git.octo.it/?a=blobdiff_plain;f=http.c;h=08769cc7cd4282a485fb9cd22c4ecfa97096a419;hb=7612a1efdb0c0806b43db10ce784707aae874340;hp=146cf7bf36d715ea410c0646d83c47148d426444;hpb=731651fe25a7d7a242584e4b85112a610c32a23f;p=git.git diff --git a/http.c b/http.c index 146cf7bf..08769cc7 100644 --- a/http.c +++ b/http.c @@ -286,7 +286,8 @@ void http_cleanup(void) curl_multi_cleanup(curlm); #endif curl_global_cleanup(); - + + curl_slist_free_all(pragma_header); } struct active_request_slot *get_active_slot(void) @@ -438,11 +439,15 @@ void release_active_slot(struct active_request_slot *slot) { closedown_active_slot(slot); if (slot->curl) { +#ifdef USE_CURL_MULTI curl_multi_remove_handle(curlm, slot->curl); +#endif curl_easy_cleanup(slot->curl); slot->curl = NULL; } +#ifdef USE_CURL_MULTI fill_active_slots(); +#endif } static void finish_active_slot(struct active_request_slot *slot)