From 77b504d27def0c6722c13e71038b6ea1637d1069 Mon Sep 17 00:00:00 2001 From: Ruben Kerkhof Date: Sat, 28 Nov 2015 13:29:08 +0100 Subject: [PATCH] mqtt: plug leak on error path --- src/mqtt.c | 1 + 1 file changed, 1 insertion(+) diff --git a/src/mqtt.c b/src/mqtt.c index 7003fcc6..c7581e9a 100644 --- 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); -- 2.30.2