Skip to content
This repository has been archived by the owner on Aug 8, 2023. It is now read-only.

Commit

Permalink
Fix CURL handle leak (fixes #1394)
Browse files Browse the repository at this point in the history
  • Loading branch information
jfirebaugh committed May 1, 2015
1 parent 5475f31 commit 5013be1
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions platform/default/http_request_curl.cpp
Original file line number Diff line number Diff line change
@@ -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;

0 comments on commit 5013be1

Please sign in to comment.