mirror of
https://github.com/curl/curl.git
synced 2026-05-30 08:47:28 +03:00
tool_operate: fix memory leak when SSL_CERT_DIR is used
Detected by Coverity
Follow-up to 29bce9857a
Closes #11577
This commit is contained in:
parent
c17bf311f1
commit
139ecfb869
1 changed files with 1 additions and 0 deletions
|
|
@ -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");
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue