curl stats: Use CamelCase identifiers instead of using underscores.
[collectd.git] / src / amqp.c
index 2be55e0..99dca90 100644 (file)
@@ -33,8 +33,6 @@
 #include "utils_format_json.h"
 #include "utils_format_graphite.h"
 
-#include <pthread.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);
-        camqp_config_free (conf);
         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)));
-        camqp_config_free (conf);
         return (status);
     }