Free headers

This commit is contained in:
Baroukh Ovadia 2022-06-06 06:19:59 +00:00
parent 59bf0e60e9
commit 9b067963af
1 changed files with 3 additions and 1 deletions

View File

@ -311,7 +311,6 @@ char *gcs_auth_request(char *content, char *url) {
char *ct = "Content-Type: application/x-www-form-urlencoded";
struct http_data http_data;
CURLcode res;
memset(&http_data, 0, sizeof(http_data));
http_data.max_bytes = 10240;
SWITCH_STANDARD_STREAM(http_data.stream);
@ -349,6 +348,9 @@ char *gcs_auth_request(char *content, char *url) {
cJSON_Delete(json);
}
switch_safe_free(http_data.stream.data);
if (headers) {
switch_curl_slist_free_all(headers);
}
return response;
}
#endif