ev_io_stop(event_base, &IO->send_event);
ev_io_stop(event_base, &IO->recv_event);
+ curl_easy_cleanup(IO->HttpReq.chnd);
+ IO->HttpReq.chnd = NULL;
+
if (IO->SendBuf.fd != 0) {
close(IO->SendBuf.fd);
}
switch(IO->SendDone(IO))
{
case eDBQuery:
- curl_easy_cleanup(IO->HttpReq.chnd);
- IO->HttpReq.chnd = NULL;
- break;
case eSendDNSQuery:
case eReadDNSReply:
case eConnect:
case eReadMore:
case eReadPayload:
case eReadFile:
- curl_easy_cleanup(IO->HttpReq.chnd);
- IO->HttpReq.chnd = NULL;
break;
case eTerminateConnection:
case eAbort: