summaryrefslogtreecommitdiff
path: root/request.c
diff options
context:
space:
mode:
Diffstat (limited to 'request.c')
-rw-r--r--request.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/request.c b/request.c
index 72cbf1c..cee61a1 100644
--- a/request.c
+++ b/request.c
@@ -151,6 +151,7 @@ void request(void (*handler)(icclient_response *), void (*callback)(void *), str
CURLcode res = curl_easy_perform(curl);
if (post)
curl_formfree(post);
+ curl_easy_cleanup(curl);
if (res == CURLE_OK && handler)
handler(response);
#ifdef DEBUG
@@ -163,6 +164,5 @@ void request(void (*handler)(icclient_response *), void (*callback)(void *), str
#endif
}
#endif
- curl_easy_cleanup(curl);
#endif
}