mirror of
https://github.com/PurpleI2P/i2pd.git
synced 2025-01-22 20:44:39 +00:00
set pointer to null after delete
This commit is contained in:
parent
895820f14c
commit
3cfbc05bf9
1
I2CP.cpp
1
I2CP.cpp
@ -178,6 +178,7 @@ namespace client
|
|||||||
memcpy (m_NextMessage + m_NextMessageOffset, m_Buffer, offset);
|
memcpy (m_NextMessage + m_NextMessageOffset, m_Buffer, offset);
|
||||||
HandleNextMessage (m_NextMessage);
|
HandleNextMessage (m_NextMessage);
|
||||||
delete[] m_NextMessage;
|
delete[] m_NextMessage;
|
||||||
|
m_NextMessage = nullptr
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
while (offset < bytes_transferred)
|
while (offset < bytes_transferred)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user