Fix CURL handle leak (fixes #1394)

This commit is contained in:
John Firebaugh
2015-05-01 18:40:37 -04:00
parent 5475f3138b
commit 5013be138e

View File

@@ -207,6 +207,11 @@ HTTPCURLContext::HTTPCURLContext(uv_loop_t *loop_)
}
HTTPCURLContext::~HTTPCURLContext() {
while (!handles.empty()) {
curl_easy_cleanup(handles.front());
handles.pop();
}
curl_multi_cleanup(multi);
multi = nullptr;