From 5252dc105917dc2b4b1888c63b5f7e62d1f3861b Mon Sep 17 00:00:00 2001 From: Steffen Vogel Date: Sat, 26 May 2018 02:53:40 +0200 Subject: [PATCH] mqtt: fix memory leak --- lib/nodes/mqtt.c | 1 + 1 file changed, 1 insertion(+) diff --git a/lib/nodes/mqtt.c b/lib/nodes/mqtt.c index 52ecc1457..bc3692f13 100644 --- a/lib/nodes/mqtt.c +++ b/lib/nodes/mqtt.c @@ -96,6 +96,7 @@ static void mqtt_message_cb(struct mosquitto *mosq, void *userdata, const struct } if (ret != 1) { debug(4, "MQTT: skip empty message for node %s", node_name(n)); + sample_put(smp); return; }