From b1ef09625e04bd896a408aafcca5ae6b932db33e Mon Sep 17 00:00:00 2001 From: Eric House Date: Fri, 21 Jun 2013 07:25:41 -0700 Subject: [PATCH] pair delete[] with new[] --- xwords4/relay/udpqueue.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/xwords4/relay/udpqueue.h b/xwords4/relay/udpqueue.h index 890d9d234..0aa04afa0 100644 --- a/xwords4/relay/udpqueue.h +++ b/xwords4/relay/udpqueue.h @@ -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; }