mirror of
https://github.com/PurpleI2P/i2pd.git
synced 2025-04-28 11:47:48 +02:00
fixed memory leak
This commit is contained in:
parent
73ef5e29c2
commit
226ef77927
3 changed files with 12 additions and 5 deletions
|
@ -1,4 +1,5 @@
|
|||
#include <string.h>
|
||||
#include <atomic>
|
||||
#include "I2PEndian.h"
|
||||
#include <cryptopp/sha.h>
|
||||
#include <cryptopp/gzip.h>
|
||||
|
@ -29,7 +30,7 @@ namespace i2p
|
|||
delete msg;
|
||||
}
|
||||
|
||||
static uint32_t I2NPmsgID = 0; // TODO: create class
|
||||
static std::atomic<uint32_t> I2NPmsgID(0); // TODO: create class
|
||||
void FillI2NPMessageHeader (I2NPMessage * msg, I2NPMessageType msgType, uint32_t replyMsgID)
|
||||
{
|
||||
I2NPHeader * header = msg->GetHeader ();
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue