Skip to content

Commit 072ffe7

Browse files
author
leonardo-albertovich
authored
in_calyptia_fleet: fixed memory leaks (CID 508187) (#9346)
* in_calyptia_fleet: fixed memory leaks Signed-off-by: Leonardo Alminana <[email protected]>
1 parent a6c73c8 commit 072ffe7

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

plugins/in_calyptia_fleet/in_calyptia_fleet.c

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1985,6 +1985,10 @@ static int create_fleet_file(flb_sds_t fleetdir,
19851985
(unsigned char *)b64_content, blen);
19861986

19871987
if (ret != 0) {
1988+
fclose(fp);
1989+
flb_sds_destroy(dst);
1990+
flb_sds_destroy(fname);
1991+
19881992
return -1;
19891993
}
19901994

0 commit comments

Comments
 (0)