summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: 598a534)
raw | patch | inline | side by side (parent: 598a534)
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 7003fcc63e19b08d775d1c258e058383c3061389..c7581e9a823e720bf7d4b22694e3608ba0223bf3 100644 (file)
--- a/src/mqtt.c
+++ b/src/mqtt.c
if (payload == NULL)
{
ERROR ("mqtt plugin: malloc for payload buffer failed.");
+ sfree (vl.values);
return;
}
memmove (payload, msg->payload, msg->payloadlen);