X-Git-Url: https://git.octo.it/?a=blobdiff_plain;f=src%2Fstatsd.c;h=d12cb0d5b83d5677f0ba8125c7d29250e7db3353;hb=9e964f8d3e04bb95eeab32acf864b1d5698a93d7;hp=610391b1018bdfa04775d6f619bf78daa3a41ca5;hpb=fc6f1e3d33d646391adb5cedc62e7b3904c15003;p=collectd.git diff --git a/src/statsd.c b/src/statsd.c index 610391b1..d12cb0d5 100644 --- a/src/statsd.c +++ b/src/statsd.c @@ -562,6 +562,7 @@ static int statsd_network_init (struct pollfd **ret_fds, /* {{{ */ if (tmp == NULL) { ERROR ("statsd plugin: realloc failed."); + close (fd); continue; } fds = tmp;