Skip to content

Commit

Permalink
only call curl_global_cleanup once (#2890)
Browse files Browse the repository at this point in the history
  • Loading branch information
jmklix committed Mar 14, 2024
1 parent f53fba1 commit e9d0d24
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions src/aws-cpp-sdk-core/source/http/curl/CurlHttpClient.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -530,8 +530,11 @@ void CurlHttpClient::InitGlobalState()

void CurlHttpClient::CleanupGlobalState()
{
curl_global_cleanup();
isInit = false;
if (isInit)
{
curl_global_cleanup();
isInit = false;
}
}

Aws::String CurlInfoTypeToString(curl_infotype type)
Expand Down

0 comments on commit e9d0d24

Please sign in to comment.