projects
/
collectd.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
all plugins: remove pthread.h include
[collectd.git]
/
src
/
amqp.c
diff --git
a/src/amqp.c
b/src/amqp.c
index
2be55e0
..
99dca90
100644
(file)
--- a/
src/amqp.c
+++ b/
src/amqp.c
@@
-33,8
+33,6
@@
#include "utils_format_json.h"
#include "utils_format_graphite.h"
#include "utils_format_json.h"
#include "utils_format_graphite.h"
-#include <pthread.h>
-
#include <amqp.h>
#include <amqp_framing.h>
#include <amqp.h>
#include <amqp_framing.h>
@@
-737,7
+735,6
@@
static int camqp_subscribe_init (camqp_config_t *conf) /* {{{ */
{
ERROR ("amqp plugin: realloc failed.");
sfree (subscriber_threads);
{
ERROR ("amqp plugin: realloc failed.");
sfree (subscriber_threads);
- camqp_config_free (conf);
return (ENOMEM);
}
subscriber_threads = tmp;
return (ENOMEM);
}
subscriber_threads = tmp;
@@
-751,7
+748,6
@@
static int camqp_subscribe_init (camqp_config_t *conf) /* {{{ */
char errbuf[1024];
ERROR ("amqp plugin: pthread_create failed: %s",
sstrerror (status, errbuf, sizeof (errbuf)));
char errbuf[1024];
ERROR ("amqp plugin: pthread_create failed: %s",
sstrerror (status, errbuf, sizeof (errbuf)));
- camqp_config_free (conf);
return (status);
}
return (status);
}