Code

email plugin: Added some information about this plugin and it's config options to...
[collectd.git] / src / apcups.c
index a9227ab29458d287d5d11018ee26dc600ea00fe3..cd64426afa01e42125f3b210b7e39dc40f991c12 100644 (file)
@@ -208,6 +208,7 @@ static int net_open (char *host, char *service, int port)
        if (status != 0) /* `connect(2)' failed */
        {
                DBG ("connect failed: %s", strerror (errno));
+               close (sd);
                return (-1);
        }