1
0
Fork 0
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:
Steffen Vogel 2018-05-23 00:17:25 +02:00
parent caaef4ac07
commit a96667b970

View file

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