mirror of
https://git.rwth-aachen.de/acs/public/villas/node/
synced 2025-03-09 00:00:00 +01:00
iec61850-9-2: fix memory leak
This commit is contained in:
parent
526603fc45
commit
db464e50ee
1 changed files with 1 additions and 0 deletions
|
@ -351,6 +351,7 @@ int iec61850_sv_read(struct node *n, struct sample *smps[], unsigned cnt)
|
|||
pulled = queue_signalled_pull_many(&i->subscriber.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