mirror of
https://git.rwth-aachen.de/acs/public/villas/node/
synced 2025-03-09 00:00:00 +01:00
websocket: fix possible memory leak
This commit is contained in:
parent
caaef4ac07
commit
a96667b970
1 changed files with 1 additions and 1 deletions
|
@ -81,7 +81,7 @@ static int websocket_connection_write(struct websocket_connection *c, struct sam
|
|||
if (pushed < cnt)
|
||||
warn("Queue overrun in WebSocket connection: %s", websocket_connection_name(c));
|
||||
|
||||
sample_get_many(smps, cnt);
|
||||
sample_get_many(smps, pushed);
|
||||
|
||||
debug(LOG_WEBSOCKET | 10, "Enqueued %u samples to %s", pushed, websocket_connection_name(c));
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue