Skip to content

Commit f736aef

Browse files
committed
Fix: Shared pointer bug in AWSCredentialsProvider
1 parent bf2fd95 commit f736aef

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/aws-cpp-sdk-core/source/auth/AWSCredentialsProvider.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -244,7 +244,7 @@ InstanceProfileCredentialsProvider::InstanceProfileCredentialsProvider(const std
244244
}
245245

246246
InstanceProfileCredentialsProvider::InstanceProfileCredentialsProvider(const Aws::Client::ClientConfiguration& clientConfig, long refreshRateMs) :
247-
m_ec2MetadataConfigLoader(clientConfig),
247+
m_ec2MetadataConfigLoader(Aws::MakeShared<Aws::Config::EC2InstanceProfileConfigLoader>(INSTANCE_LOG_TAG, clientConfig)),
248248
m_loadFrequencyMs(refreshRateMs)
249249
{
250250
AWS_LOGSTREAM_INFO(INSTANCE_LOG_TAG, "Creating Instance with IMDS timeout: " << clientConfig.imdsConfig.metadata_service_timeout << "s, attempts: " << clientConfig.imdsConfig.metadata_service_num_attempts);

0 commit comments

Comments
 (0)