projects
/
collectd.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
9758016
)
Pinba plugin: close fd on error
author
Ruben Kerkhof
<ruben@rubenkerkhof.com>
Fri, 4 Dec 2015 22:21:31 +0000
(23:21 +0100)
committer
Florian Forster
<octo@collectd.org>
Sat, 5 Dec 2015 07:55:54 +0000
(08:55 +0100)
CID #38001
Signed-off-by: Florian Forster <octo@collectd.org>
src/pinba.c
patch
|
blob
|
history
diff --git
a/src/pinba.c
b/src/pinba.c
index
e7bf2aa
..
1a07706
100644
(file)
--- a/
src/pinba.c
+++ b/
src/pinba.c
@@
-336,6
+336,7
@@
static int pb_add_socket (pinba_socket_t *s, /* {{{ */
char errbuf[1024];
ERROR ("pinba plugin: bind(2) failed: %s",
sstrerror (errno, errbuf, sizeof (errbuf)));
+ close (fd);
return (0);
}