Got rid of a memory leak on each received packet.

git-svn-id: http://yate.null.ro/svn/yate/trunk@2349 acf43c95-373e-0410-b603-e72c3f656dc1
This commit is contained in:
paulc 2008-11-18 14:06:06 +00:00
parent 2ff7e45ccb
commit 14830eb0ba
3 changed files with 3 additions and 3 deletions

View File

@ -912,7 +912,7 @@ bool WpInterface::receiveAttempt()
}
#endif
DataBlock data(buf+WP_HEADER,r);
DataBlock data(buf+WP_HEADER,r,false);
receivedPacket(data);
data.clear(false);
}

View File

@ -632,7 +632,7 @@ bool WpInterface::receiveAttempt()
}
#endif
DataBlock data(buffer.data,r);
DataBlock data(buffer.data,r,false);
receivedPacket(data);
data.clear(false);
}

View File

@ -1633,7 +1633,7 @@ bool ZapInterface::process()
s_ifaceNotifyMutex.lock();
m_notify = 0;
s_ifaceNotifyMutex.unlock();
DataBlock packet(m_buffer,r - ZAP_CRC_LEN);
DataBlock packet(m_buffer,r - ZAP_CRC_LEN,false);
#ifdef XDEBUG
String hex;
hex.hexify(packet.data(),packet.length(),' ');