Browse Source

Fixed potential memory leak in RingBuffer

pull/1/head
Joseph Henry 7 years ago committed by Grant Limberg
parent
commit
541e91ed8e
  1. 5
      node/RingBuffer.hpp

5
node/RingBuffer.hpp

@ -72,6 +72,11 @@ public:
memset(buf, 0, sizeof(T) * size);
}
~RingBuffer()
{
delete [] buf;
}
/**
* @return A pointer to the underlying buffer
*/

Loading…
Cancel
Save