fix websocket memory leak

This commit is contained in:
ading2210 2024-02-04 23:10:14 -05:00
parent 5f71e27422
commit 582bbd4ecd
5 changed files with 7 additions and 5 deletions

View file

@ -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);