1
0
Fork 0
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:
Steffen Vogel 2018-04-04 12:01:09 +02:00
parent 526603fc45
commit db464e50ee

View file

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