From: Ruben Kerkhof Date: Sat, 23 Apr 2016 11:41:04 +0000 (+0200) Subject: amqp: plug leak on realloc failure X-Git-Tag: collectd-5.6.0~331 X-Git-Url: https://git.tokkee.org/?a=commitdiff_plain;h=483d0f5bded54e2f850fceec1cbd43d96934d15c;p=collectd.git amqp: plug leak on realloc failure --- diff --git a/src/amqp.c b/src/amqp.c index ec794302..2be55e07 100644 --- a/src/amqp.c +++ b/src/amqp.c @@ -736,6 +736,7 @@ static int camqp_subscribe_init (camqp_config_t *conf) /* {{{ */ if (tmp == NULL) { ERROR ("amqp plugin: realloc failed."); + sfree (subscriber_threads); camqp_config_free (conf); return (ENOMEM); }