Skip to content

Commit 009d613

Browse files
authored
fix memleaks (#283)
Co-authored-by: Krish <>
1 parent da365c1 commit 009d613

File tree

3 files changed

+9
-0
lines changed

3 files changed

+9
-0
lines changed

tests/credentials_provider_sts_web_identity_tests.c

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -324,6 +324,9 @@ static int s_aws_sts_web_identity_tester_init(struct aws_allocator *allocator) {
324324
s_tester.is_connection_acquire_successful = true;
325325
s_tester.is_request_successful = true;
326326

327+
/* cleanup */
328+
aws_tls_ctx_options_clean_up(&tls_options);
329+
327330
return AWS_OP_SUCCESS;
328331
}
329332

tests/credentials_provider_utils.c

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -590,6 +590,9 @@ int aws_credentials_provider_http_mock_tester_init(struct aws_allocator *allocat
590590
credentials_provider_http_mock_tester.is_connection_acquire_successful = true;
591591
credentials_provider_http_mock_tester.is_request_successful = true;
592592

593+
/* cleanup */
594+
aws_tls_ctx_options_clean_up(&tls_ctx_options);
595+
593596
return AWS_OP_SUCCESS;
594597
}
595598

tests/token_provider_sso_tests.c

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -149,6 +149,9 @@ static int s_aws_mock_token_provider_sso_tester_init(struct aws_allocator *alloc
149149
};
150150
s_tester.bootstrap = aws_client_bootstrap_new(allocator, &bootstrap_options);
151151

152+
/* cleanup */
153+
aws_tls_ctx_options_clean_up(&tls_ctx_options);
154+
152155
return AWS_OP_SUCCESS;
153156
}
154157

0 commit comments

Comments
 (0)