projects
/
collectd.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
python plugin: Check return value of malloc().
[collectd.git]
/
src
/
statsd.c
diff --git
a/src/statsd.c
b/src/statsd.c
index
82dbce7
..
7336d37
100644
(file)
--- a/
src/statsd.c
+++ b/
src/statsd.c
@@
-557,6
+557,7
@@
static int statsd_network_init (struct pollfd **ret_fds, /* {{{ */
if (tmp == NULL)
{
ERROR ("statsd plugin: realloc failed.");
+ close (fd);
continue;
}
fds = tmp;