mirror of
https://github.com/curl/curl.git
synced 2026-04-16 00:21:41 +03:00
vtls: use free() not curl_free()
curl_free() is provided for users of the API to free returned data, there's no need to use it internally. Closes #7318
This commit is contained in:
parent
8ccc066b45
commit
97fa671a73
1 changed files with 2 additions and 2 deletions
|
|
@ -1387,7 +1387,7 @@ static int multissl_setup(const struct Curl_ssl *backend)
|
|||
for(i = 0; available_backends[i]; i++) {
|
||||
if(strcasecompare(env, available_backends[i]->info.name)) {
|
||||
Curl_ssl = available_backends[i];
|
||||
curl_free(env_tmp);
|
||||
free(env_tmp);
|
||||
return 0;
|
||||
}
|
||||
}
|
||||
|
|
@ -1395,7 +1395,7 @@ static int multissl_setup(const struct Curl_ssl *backend)
|
|||
|
||||
/* Fall back to first available backend */
|
||||
Curl_ssl = available_backends[0];
|
||||
curl_free(env_tmp);
|
||||
free(env_tmp);
|
||||
return 0;
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue