mirror of
https://github.com/PurpleI2P/i2pd
synced 2024-11-10 16:10:33 +03: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…
Reference in New Issue
Block a user