X-Git-Url: https://git.verplant.org/?a=blobdiff_plain;f=src%2Fstatsd.c;h=d0a677e70476c79dc5fa0299c3da4af8292cdfd9;hb=43ef00c0eb99991902d3c9a5fbe582cde049b055;hp=ea4123c10f6d38c6a731201981eb2aba7dff8d8c;hpb=d1cf372e8b0191b7b340bf3932e21b93d7daf93b;p=collectd.git diff --git a/src/statsd.c b/src/statsd.c index ea4123c1..d0a677e7 100644 --- a/src/statsd.c +++ b/src/statsd.c @@ -565,6 +565,7 @@ static int statsd_network_init (struct pollfd **ret_fds, /* {{{ */ if (tmp == NULL) { ERROR ("statsd plugin: realloc failed."); + close (fd); continue; } fds = tmp;