Skip to content

Commit

Permalink
in_calyptia_fleet: fixed memory leaks
Browse files Browse the repository at this point in the history
Signed-off-by: Leonardo Alminana <leonardo.alminana@chronosphere.io>
  • Loading branch information
leonardo-albertovich committed Sep 4, 2024
1 parent c6e902a commit 4c5b8cc
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions plugins/in_calyptia_fleet/in_calyptia_fleet.c
Original file line number Diff line number Diff line change
Expand Up @@ -1985,6 +1985,10 @@ static int create_fleet_file(flb_sds_t fleetdir,
(unsigned char *)b64_content, blen);

if (ret != 0) {
close(fp);
flb_sds_destroy(dst);
flb_sds_destroy(fname);

return -1;
}

Expand Down

0 comments on commit 4c5b8cc

Please sign in to comment.