projects
/
collectd.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
ntpd plugin: Converted to the new plugin interface.
[collectd.git]
/
src
/
hddtemp.c
diff --git
a/src/hddtemp.c
b/src/hddtemp.c
index
08bbbc0
..
80b3419
100644
(file)
--- a/
src/hddtemp.c
+++ b/
src/hddtemp.c
@@
-185,6
+185,7
@@
static int hddtemp_query_daemon (char *buffer, int buffer_size)
syslog (LOG_ERR, "hddtemp: Error reading from socket: %s",
strerror (errno));
+ close (fd);
return (-1);
}
buffer_fill += status;
@@
-373,6
+374,7
@@
static void hddtemp_init (void)
first_hddname = entry;
}
}
+ fclose (fh);
}
else
DBG ("Could not open /proc/partitions: %s",