Skip to content

Commit

Permalink
out_s3: fix file descriptor leak
Browse files Browse the repository at this point in the history
Signed-off-by: David Korczynski <[email protected]>
  • Loading branch information
DavidKorczynski authored and edsiper committed Aug 29, 2023
1 parent 77f076c commit f961d0c
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions plugins/out_s3/s3.c
Original file line number Diff line number Diff line change
Expand Up @@ -317,6 +317,7 @@ static int write_seq_index(char *seq_index_file, uint64_t seq_index)

ret = fprintf(fp, "%"PRIu64, seq_index);
if (ret < 0) {
fclose(fp);
flb_errno();
return -1;
}
Expand Down

0 comments on commit f961d0c

Please sign in to comment.