Code

amqp: plug leak on realloc failure
authorRuben Kerkhof <ruben@rubenkerkhof.com>
Sat, 23 Apr 2016 11:41:04 +0000 (13:41 +0200)
committerRuben Kerkhof <ruben@rubenkerkhof.com>
Sat, 23 Apr 2016 11:41:04 +0000 (13:41 +0200)
src/amqp.c

index ec7943022b8db23177dae9e284e5a5fe6717abcf..2be55e0713efe186268337924357d47a6863a1b9 100644 (file)
@@ -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);
     }