mirror of
https://github.com/zerotier/ZeroTierOne.git
synced 2025-06-05 03:53:44 +02:00
Fixed potential memory leak in RingBuffer
This commit is contained in:
parent
321cada1d7
commit
541e91ed8e
1 changed files with 5 additions and 0 deletions
|
@ -72,6 +72,11 @@ public:
|
||||||
memset(buf, 0, sizeof(T) * size);
|
memset(buf, 0, sizeof(T) * size);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
~RingBuffer()
|
||||||
|
{
|
||||||
|
delete [] buf;
|
||||||
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @return A pointer to the underlying buffer
|
* @return A pointer to the underlying buffer
|
||||||
*/
|
*/
|
||||||
|
|
Loading…
Add table
Reference in a new issue