Fix broken build when USE_CURL_MULTI is not defined, as noted by Becky Bruce.
During cleanup, free header slist that was created during init, as noted
by Junio.
Signed-off-by: Nick Hengeveld <nickh@reactrix.com>
Signed-off-by: Junio C Hamano <junkio@cox.net>
void fill_active_slots(void)
{
struct transfer_request *request = request_queue_head;
void fill_active_slots(void)
{
struct transfer_request *request = request_queue_head;
static void get_remote_object_list(unsigned char parent);
static void get_remote_object_list(unsigned char parent);
request->next = request_queue_head;
request_queue_head = request;
request->next = request_queue_head;
request_queue_head = request;
fill_active_slots();
step_active_slots();
fill_active_slots();
step_active_slots();
}
static int add_send_request(struct object *obj, struct remote_lock *lock)
}
static int add_send_request(struct object *obj, struct remote_lock *lock)
request->next = request_queue_head;
request_queue_head = request;
request->next = request_queue_head;
request_queue_head = request;
fill_active_slots();
step_active_slots();
fill_active_slots();
step_active_slots();
if (objects_to_send)
fprintf(stderr, " sending %d objects\n",
objects_to_send);
if (objects_to_send)
fprintf(stderr, " sending %d objects\n",
objects_to_send);
finish_all_active_slots();
/* Update the remote branch if all went well */
finish_all_active_slots();
/* Update the remote branch if all went well */
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)
{
closedown_active_slot(slot);
if (slot->curl) {
{
closedown_active_slot(slot);
if (slot->curl) {
curl_multi_remove_handle(curlm, slot->curl);
curl_multi_remove_handle(curlm, slot->curl);
curl_easy_cleanup(slot->curl);
slot->curl = NULL;
}
curl_easy_cleanup(slot->curl);
slot->curl = NULL;
}
}
static void finish_active_slot(struct active_request_slot *slot)
}
static void finish_active_slot(struct active_request_slot *slot)