Skip to content

Commit

Permalink
in_calyptia_fleet: fixed memory leaks (CID 508187) (#9346)
Browse files Browse the repository at this point in the history
* in_calyptia_fleet: fixed memory leaks

Signed-off-by: Leonardo Alminana <[email protected]>
  • Loading branch information
leonardo-albertovich authored Sep 7, 2024
1 parent a6c73c8 commit 072ffe7
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) {
fclose(fp);
flb_sds_destroy(dst);
flb_sds_destroy(fname);

return -1;
}

Expand Down

0 comments on commit 072ffe7

Please sign in to comment.