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:
parent
64d18c0260
commit
5252dc1059
1 changed files with 1 additions and 0 deletions
|
@ -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;
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue