From: Florian Forster Date: Sat, 13 Jul 2013 05:42:18 +0000 (+0200) Subject: write_graphite plugin: Don't call close() on invalid file descriptors. X-Git-Tag: collectd-5.3.1~1^2~2 X-Git-Url: https://git.verplant.org/?a=commitdiff_plain;h=fcc889ea77bda0883b916f4760f59d6939545b8d;p=collectd.git write_graphite plugin: Don't call close() on invalid file descriptors. --- diff --git a/src/write_graphite.c b/src/write_graphite.c index 11e09a2a..aa87896f 100644 --- a/src/write_graphite.c +++ b/src/write_graphite.c @@ -220,7 +220,6 @@ static int wg_callback_init (struct wg_callback *cb) "write_graphite plugin: Connecting to %s:%s failed. " "The last error was: %s", node, service, sstrerror (errno, errbuf, sizeof (errbuf))); - close (cb->sock_fd); return (-1); } else