fix possible double free when requests get aborted

This commit is contained in:
ading2210 2024-07-10 23:52:11 -07:00
parent 11795d2772
commit 31e4e25f82
7 changed files with 41 additions and 8 deletions

View file

@ -110,4 +110,7 @@ char* http_get_info(CURL* http_handle) {
cJSON_Delete(response_json);
return response_json_str;
}
}
//the address sanitizer falsely flags any malloc operation as a memory leak
const char* __asan_default_options() { return "detect_leaks=false"; }