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-04-26 09:31:39 +02:00
parent b6d971cfc9
commit 03247eeba8

View file

@ -476,6 +476,7 @@ int mqtt_read(struct node *n, struct sample *smps[], unsigned cnt)
pulled = queue_signalled_pull_many(&m->queue, (void **) smpt, cnt);
sample_copy_many(smps, smpt, pulled);
sample_put_many(smpt, pulled);
return pulled;
}