Fixed a use-after-free and a memory leak.

This commit is contained in:
2020-08-26 00:09:31 +02:00
parent 260331715f
commit 16c11dada0
3 changed files with 6 additions and 6 deletions

View File

@@ -104,7 +104,7 @@ private:
uint64_t EKey;
uint64_t FEKey;
int32_t readSize = 0;
uint8_t* readBuffer = new uint8_t[MAX_PACKETSIZE];
uint8_t readBuffer[MAX_PACKETSIZE];
int readBufferIndex = 0;
bool activelyReading = false;
bool alive = true;