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
|
@ -32,5 +32,6 @@ char* get_version() {
|
|||
cJSON_AddItemToObject(version_json, "protocols", protocols_array);
|
||||
|
||||
char* version_json_str = cJSON_Print(version_json);
|
||||
cJSON_Delete(version_json);
|
||||
return version_json_str;
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue