News for hackers. Stuff that matters.
Re:Itsy Bitsy Data Structures – Simplified examples of many ... by munificent on Friday August 26, 2016 @08:12PM (#12370193)
You can avoid the memory leak without adding too much complexity by just making it a circular buffer:

https://en.wikipedia.org/wiki/Circular_buffer

There are no comments on this comment yet.