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
b6d971cfc9
commit
03247eeba8
1 changed files with 1 additions and 0 deletions
|
@ -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;
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue