Browse Source

set pointer to null after delete

pull/509/head
Jeff Becker 9 years ago
parent
commit
3cfbc05bf9
No known key found for this signature in database
GPG Key ID: AB950234D6EA286B
  1. 1
      I2CP.cpp

1
I2CP.cpp

@ -178,6 +178,7 @@ namespace client @@ -178,6 +178,7 @@ namespace client
memcpy (m_NextMessage + m_NextMessageOffset, m_Buffer, offset);
HandleNextMessage (m_NextMessage);
delete[] m_NextMessage;
m_NextMessage = nullptr
}
}
while (offset < bytes_transferred)

Loading…
Cancel
Save