X-Git-Url: https://git.octo.it/?a=blobdiff_plain;f=src%2Famqp.c;h=fc69e936554a6418b7be9d05784c7bba798a2a13;hb=db35efb33e81d0a013e09a8a6ffa362ad5962f7c;hp=ec7943022b8db23177dae9e284e5a5fe6717abcf;hpb=09c12e0e1e0ef340a7074146684650ed54cba64d;p=collectd.git diff --git a/src/amqp.c b/src/amqp.c index ec794302..fc69e936 100644 --- a/src/amqp.c +++ b/src/amqp.c @@ -736,7 +736,7 @@ static int camqp_subscribe_init (camqp_config_t *conf) /* {{{ */ if (tmp == NULL) { ERROR ("amqp plugin: realloc failed."); - camqp_config_free (conf); + sfree (subscriber_threads); return (ENOMEM); } subscriber_threads = tmp; @@ -750,7 +750,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); }