projects
/
git.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Refactor git_tcp_connect() functions a little.
[git.git]
/
http.c
diff --git
a/http.c
b/http.c
index
146cf7b
..
08769cc
100644
(file)
--- a/
http.c
+++ b/
http.c
@@
-286,7
+286,8
@@
void http_cleanup(void)
curl_multi_cleanup(curlm);
#endif
curl_global_cleanup();
curl_multi_cleanup(curlm);
#endif
curl_global_cleanup();
-
+
+ curl_slist_free_all(pragma_header);
}
struct active_request_slot *get_active_slot(void)
}
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) {
{
closedown_active_slot(slot);
if (slot->curl) {
+#ifdef USE_CURL_MULTI
curl_multi_remove_handle(curlm, slot->curl);
curl_multi_remove_handle(curlm, slot->curl);
+#endif
curl_easy_cleanup(slot->curl);
slot->curl = NULL;
}
curl_easy_cleanup(slot->curl);
slot->curl = NULL;
}
+#ifdef USE_CURL_MULTI
fill_active_slots();
fill_active_slots();
+#endif
}
static void finish_active_slot(struct active_request_slot *slot)
}
static void finish_active_slot(struct active_request_slot *slot)