Skip to content

Commit

Permalink
lib: fix leak if pipe creation fails (CID 138384)
Browse files Browse the repository at this point in the history
Signed-off-by: Eduardo Silva <[email protected]>
  • Loading branch information
edsiper committed Mar 14, 2016
1 parent a22f8b8 commit 24ef07f
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/flb_lib.c
Original file line number Diff line number Diff line change
Expand Up @@ -52,6 +52,7 @@ flb_ctx_t *flb_create()
ret = pipe(config->ch_data);
if (ret == -1) {
perror("pipe");
free(ctx);
return NULL;
}

Expand Down

0 comments on commit 24ef07f

Please sign in to comment.