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:
Daniel Stenberg 2021-06-30 10:41:19 +02:00
parent 8ccc066b45
commit 97fa671a73
No known key found for this signature in database
GPG Key ID: 5CC908FDB71E12C2

View File

@ -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;
}