Skip to content

Commit 5a9a4e8

Browse files
pwhelanedsiper
authored andcommitted
in_calyptia_fleet: fix double free when calyptia API returns with an empty response payload.
Signed-off-by: Phillip Whelan <[email protected]>
1 parent a01d766 commit 5a9a4e8

File tree

1 file changed

+0
-1
lines changed

1 file changed

+0
-1
lines changed

plugins/in_calyptia_fleet/in_calyptia_fleet.c

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -917,7 +917,6 @@ static struct flb_http_client *fleet_http_do(struct flb_in_calyptia_fleet_config
917917

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

0 commit comments

Comments
 (0)