mirror of
https://github.com/zerotier/ZeroTierOne.git
synced 2024-12-23 23:02:23 +00:00
Fixed potential memory leak in RingBuffer
This commit is contained in:
parent
321cada1d7
commit
541e91ed8e
@ -72,6 +72,11 @@ public:
|
||||
memset(buf, 0, sizeof(T) * size);
|
||||
}
|
||||
|
||||
~RingBuffer()
|
||||
{
|
||||
delete [] buf;
|
||||
}
|
||||
|
||||
/**
|
||||
* @return A pointer to the underlying buffer
|
||||
*/
|
||||
|
Loading…
Reference in New Issue
Block a user