Skip to content

Commit

Permalink
in_calyptia_fleet: fix double free when calyptia API returns with an …
Browse files Browse the repository at this point in the history
…empty response payload.

Signed-off-by: Phillip Whelan <[email protected]>
  • Loading branch information
pwhelan authored and edsiper committed Dec 21, 2023
1 parent a01d766 commit 5a9a4e8
Showing 1 changed file with 0 additions and 1 deletion.
1 change: 0 additions & 1 deletion plugins/in_calyptia_fleet/in_calyptia_fleet.c
Original file line number Diff line number Diff line change
Expand Up @@ -917,7 +917,6 @@ static struct flb_http_client *fleet_http_do(struct flb_in_calyptia_fleet_config

if (client->resp.payload_size <= 0) {
flb_plg_error(ctx->ins, "empty response");
flb_http_client_destroy(client);
goto http_do_error;
}

Expand Down

0 comments on commit 5a9a4e8

Please sign in to comment.