mirror of
https://github.com/ading2210/libcurl.js.git
synced 2025-05-13 14:30:02 -04:00
fix websocket memory leak
This commit is contained in:
parent
5f71e27422
commit
582bbd4ecd
5 changed files with 7 additions and 5 deletions
|
@ -36,7 +36,7 @@ void close_websocket(CURL* http_handle) {
|
|||
curl_ws_send(http_handle, "", 0, &sent, 0, CURLWS_CLOSE);
|
||||
}
|
||||
|
||||
//allow the main code to automatically clean up this websocket
|
||||
//clean up the http handle associated with the websocket, since the main loop can't do this automatically
|
||||
void cleanup_websocket(CURL* http_handle) {
|
||||
struct RequestInfo *request_info;
|
||||
curl_easy_getinfo(http_handle, CURLINFO_PRIVATE, &request_info);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue