tool_operate: fix memory leak when SSL_CERT_DIR is used

Detected by Coverity

Follow-up to 29bce9857a12b6cfa726a5

Closes #11577
This commit is contained in:
Daniel Stenberg 2023-08-02 13:29:23 +02:00
parent c17bf311f1
commit 139ecfb869
No known key found for this signature in database
GPG Key ID: 5CC908FDB71E12C2

View File

@ -2599,6 +2599,7 @@ static CURLcode transfer_per_config(struct GlobalConfig *global,
errorf(global, "out of memory");
return CURLE_OUT_OF_MEMORY;
}
curl_free(env);
capath_from_env = true;
}
env = curlx_getenv("SSL_CERT_FILE");