projects
/
collectd.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
598a534
)
mqtt: plug leak on error path
author
Ruben Kerkhof
<ruben@rubenkerkhof.com>
Sat, 28 Nov 2015 12:29:08 +0000
(13:29 +0100)
committer
Ruben Kerkhof
<ruben@rubenkerkhof.com>
Sat, 28 Nov 2015 12:29:08 +0000
(13:29 +0100)
src/mqtt.c
patch
|
blob
|
history
diff --git
a/src/mqtt.c
b/src/mqtt.c
index
7003fcc
..
c7581e9
100644
(file)
--- a/
src/mqtt.c
+++ b/
src/mqtt.c
@@
-221,6
+221,7
@@
static void on_message (
if (payload == NULL)
{
ERROR ("mqtt plugin: malloc for payload buffer failed.");
+ sfree (vl.values);
return;
}
memmove (payload, msg->payload, msg->payloadlen);