1
0
Fork 0
mirror of https://git.rwth-aachen.de/acs/public/villas/node/ synced 2025-03-09 00:00:00 +01:00

mqtt: fix memory leak

This commit is contained in:
Steffen Vogel 2018-05-26 02:53:40 +02:00
parent 64d18c0260
commit 5252dc1059

View file

@ -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;
}