mirror of
https://github.com/zerotier/ZeroTierOne.git
synced 2024-12-19 04:57:53 +00:00
Fixed potential memory leak in RingBuffer
This commit is contained in:
parent
d7091a0bac
commit
23996c7e6b
@ -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