Skip to content

Commit

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

Signed-off-by: leonardo-albertovich <[email protected]>

---------

Signed-off-by: Leonardo Alminana <[email protected]>
Signed-off-by: leonardo-albertovich <[email protected]>
  • Loading branch information
leonardo-albertovich authored Sep 7, 2024
1 parent 7ff6c0d commit 3fc9f0b
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 3fc9f0b

Please sign in to comment.