mirror of https://github.com/moparisthebest/curl
Caller must free 'engines' list.
This commit is contained in:
parent
7d3f5d7ac1
commit
e181eda253
|
@ -3029,10 +3029,11 @@ operate(struct Configurable *config, int argc, char *argv[])
|
||||||
|
|
||||||
|
|
||||||
if (config->list_engines) {
|
if (config->list_engines) {
|
||||||
const struct curl_slist *engines = NULL;
|
struct curl_slist *engines = NULL;
|
||||||
|
|
||||||
curl_easy_getinfo(curl, CURLINFO_SSL_ENGINES, &engines);
|
curl_easy_getinfo(curl, CURLINFO_SSL_ENGINES, &engines);
|
||||||
list_engines(engines);
|
list_engines(engines);
|
||||||
|
curl_slist_free_all(engines);
|
||||||
res = CURLE_OK;
|
res = CURLE_OK;
|
||||||
goto quit_curl;
|
goto quit_curl;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue