tests: internal: aws_credentials_sts: initialize context with zeros
@@ -402,7 +402,7 @@ static void test_eks_provider() {
g_request_count = 0;
- config = flb_malloc(sizeof(struct flb_config));
+ config = flb_calloc(1, sizeof(struct flb_config));
if (!config) {
flb_errno();
return;
@@ -478,7 +478,7 @@ static void test_eks_provider_random_session_name() {
g_request_count = 0;
- config = flb_malloc(sizeof(struct flb_config));
+ config = flb_calloc(1, sizeof(struct flb_config));
if (!config) {
flb_errno();
return;
@@ -552,7 +552,7 @@ static void test_eks_provider_unexpected_api_response() {
g_request_count = 0;
- config = flb_malloc(sizeof(struct flb_config));
+ config = flb_calloc(1, sizeof(struct flb_config));
if (!config) {
flb_errno();
return;
@@ -608,7 +608,7 @@ static void test_eks_provider_api_error() {
g_request_count = 0;
- config = flb_malloc(sizeof(struct flb_config));
+ config = flb_calloc(1, sizeof(struct flb_config));
if (!config) {
flb_errno();
return;
@@ -665,7 +665,7 @@ static void test_sts_provider() {
g_request_count = 0;
- config = flb_malloc(sizeof(struct flb_config));
+ config = flb_calloc(1, sizeof(struct flb_config));
if (!config) {
flb_errno();
return;
@@ -755,7 +755,7 @@ static void test_sts_provider_api_error() {
g_request_count = 0;
- config = flb_malloc(sizeof(struct flb_config));
+ config = flb_calloc(1, sizeof(struct flb_config));
if (!config) {
flb_errno();
return;
@@ -831,7 +831,7 @@ static void test_sts_provider_unexpected_api_response() {
g_request_count = 0;
- config = flb_malloc(sizeof(struct flb_config));
+ config = flb_calloc(1, sizeof(struct flb_config));
if (!config) {
flb_errno();
return;
