Skip to content

Commit

Permalink
out_s3: release context on mock client excepion (CID 310831)
Browse files Browse the repository at this point in the history
Signed-off-by: Eduardo Silva <[email protected]>
  • Loading branch information
edsiper committed Oct 14, 2024
1 parent 49f5197 commit d939060
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions plugins/out_s3/s3.c
Original file line number Diff line number Diff line change
Expand Up @@ -247,6 +247,7 @@ struct flb_http_client *mock_s3_call(char *error_env_var, char *api)
c->resp.data = flb_calloc(len + 1, sizeof(char));
if (!c->resp.data) {
flb_errno();
flb_free(c);
return NULL;
}
memcpy(c->resp.data, resp, len);
Expand Down

0 comments on commit d939060

Please sign in to comment.