X-Git-Url: https://git.verplant.org/?a=blobdiff_plain;f=src%2Fstatsd.c;h=d12cb0d5b83d5677f0ba8125c7d29250e7db3353;hb=3aeca36659b04725028f123bcea387a37581624a;hp=610391b1018bdfa04775d6f619bf78daa3a41ca5;hpb=4c30f47794046ec7c8dfb5e1d41d03633032bac7;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;