Browse Source

make sure to cleanup after curl

master
Brett Langdon 13 years ago
parent
commit
a8356925ac
1 changed files with 3 additions and 0 deletions
  1. +3
    -0
      src/main.c

+ 3
- 0
src/main.c View File

@ -89,6 +89,9 @@ void call_proxy(struct curl_result* result, char* key){
curl_easy_setopt(curl, CURLOPT_WRITEFUNCTION, curl_write);
curl_easy_setopt(curl, CURLOPT_WRITEDATA, result);
res = curl_easy_perform(curl);
if(res){
curl_easy_cleanup(curl);
}
}
uv_buf_t handle_version(){


Loading…
Cancel
Save