Skip to content

Commit

Permalink
in_exec_wasi: fix possible 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 26e441a commit 45457d4
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions plugins/in_exec_wasi/in_exec_wasi.c
Original file line number Diff line number Diff line change
Expand Up @@ -68,6 +68,7 @@ static int in_exec_wasi_collect(struct flb_input_instance *ins,
if (ctx->oneshot == FLB_TRUE) {
ret = flb_pipe_r(ctx->ch_manager[0], &val, sizeof(val));
if (ret == -1) {
fclose(stdoutp);
flb_errno();
return -1;
}
Expand Down

0 comments on commit 45457d4

Please sign in to comment.