Skip to content

Commit

Permalink
in_tcp: release flb_in_tcp_config when binding fails
Browse files Browse the repository at this point in the history
Signed-off-by: Takahiro YAMASHITA <[email protected]>
  • Loading branch information
nokute78 authored and edsiper committed Dec 9, 2016
1 parent af09b3c commit 666695f
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions plugins/in_tcp/tcp.c
Original file line number Diff line number Diff line change
Expand Up @@ -107,6 +107,7 @@ static int in_tcp_init(struct flb_input_instance *in,
else {
flb_error("[in_tcp] could not bind address %s:%s. Aborting",
ctx->listen, ctx->tcp_port);
tcp_config_destroy(ctx);
return -1;
}
flb_net_socket_nonblocking(ctx->server_fd);
Expand Down

0 comments on commit 666695f

Please sign in to comment.