projects
/
collectd.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Merge pull request #1455 from rubenk/configure-ac-remove-dead-code
[collectd.git]
/
src
/
memcached.c
diff --git
a/src/memcached.c
b/src/memcached.c
index
ab9de56
..
d7578b6
100644
(file)
--- a/
src/memcached.c
+++ b/
src/memcached.c
@@
-34,7
+34,6
@@
#include "configfile.h"
#include <netdb.h>
#include "configfile.h"
#include <netdb.h>
-#include <sys/socket.h>
#include <sys/un.h>
#include <netinet/in.h>
#include <netinet/tcp.h>
#include <sys/un.h>
#include <netinet/in.h>
#include <netinet/tcp.h>
@@
-62,6
+61,7
@@
static void memcached_free (memcached_t *st)
sfree (st->socket);
sfree (st->host);
sfree (st->port);
sfree (st->socket);
sfree (st->host);
sfree (st->port);
+ sfree (st);
}
static int memcached_connect_unix (memcached_t *st)
}
static int memcached_connect_unix (memcached_t *st)
@@
-439,7
+439,7
@@
static int memcached_read (user_data_t *user_data)
}
else if (FIELD_IS ("listen_disabled_num"))
{
}
else if (FIELD_IS ("listen_disabled_num"))
{
- submit_derive ("
memcached_
connections", "listen_disabled", atof (fields[2]), st);
+ submit_derive ("connections", "listen_disabled", atof (fields[2]), st);
}
/*
}
/*