pair delete[] with new[]

This commit is contained in:
Eric House 2013-06-21 07:25:41 -07:00
parent c587848349
commit b1ef09625e

View file

@ -47,7 +47,7 @@ public:
memcpy( m_buf, buf, len );
}
~UdpThreadClosure() { delete m_buf; }
~UdpThreadClosure() { delete[] m_buf; }
const unsigned char* buf() const { return m_buf; }
int len() const { return m_len; }