mirror of
https://github.com/curl/curl.git
synced 2025-03-13 15:37:04 +08:00
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:
parent
c17bf311f1
commit
139ecfb869
@ -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…
x
Reference in New Issue
Block a user