mirror of
https://github.com/curl/curl.git
synced 2024-12-15 06:40:09 +08: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
@ -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…
Reference in New Issue
Block a user