projects
/
collectd.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
c8d167c
)
amqp: plug leak on realloc failure
author
Ruben Kerkhof
<ruben@rubenkerkhof.com>
Sat, 23 Apr 2016 11:41:04 +0000
(13:41 +0200)
committer
Ruben Kerkhof
<ruben@rubenkerkhof.com>
Sat, 23 Apr 2016 11:41:04 +0000
(13:41 +0200)
src/amqp.c
patch
|
blob
|
history
diff --git
a/src/amqp.c
b/src/amqp.c
index
ec79430
..
2be55e0
100644
(file)
--- 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);
}