summaryrefslogtreecommitdiff
path: root/lib/vtls
diff options
context:
space:
mode:
authorDaniel Stenberg <daniel@haxx.se>2021-06-30 10:41:19 +0200
committerDaniel Stenberg <daniel@haxx.se>2021-06-30 13:50:18 +0200
commit97fa671a73b0acdbd1efd71825152c00a25cda3e (patch)
tree717312c7d40edb79d6ba2ed74f4561181d2a9761 /lib/vtls
parent8ccc066b45cf6f3082db13086794e0916af53e5e (diff)
downloadcurl-97fa671a73b0acdbd1efd71825152c00a25cda3e.tar.gz
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
Diffstat (limited to 'lib/vtls')
-rw-r--r--lib/vtls/vtls.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/vtls/vtls.c b/lib/vtls/vtls.c
index fe43703bf..b20bb5b2f 100644
--- a/lib/vtls/vtls.c
+++ b/lib/vtls/vtls.c
@@ -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;
}