Merge branch 'collectd-5.4' into collectd-5.5
[collectd.git] / src / statsd.c
index 610391b..d12cb0d 100644 (file)
@@ -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;