Fixed a mememory leak in networking code

This commit is contained in:
Pauli Nieminen 2008-05-12 20:54:00 +00:00
parent fb4ab15735
commit 8b87c3faf7
2 changed files with 2 additions and 0 deletions

View file

@ -7,6 +7,7 @@ Version 1.4.2+svn:
(bug #11386)
* Backported gracefull restart feature to server
* Improved connection stability with slow connections.
* Fixed a mememory leak in networking code
* fixed an alignement issue which caused a SIGBUS on a Sparc
(debian bug #426318)
* added some includes to fix compilation problems with Sun Studio 12

View file

@ -711,6 +711,7 @@ TCPsocket get_received_data(std::vector<char>& out)
received_data_queue.pop_front();
out.swap(buf->raw_buffer);
const TCPsocket res = buf->sock;
delete buf;
return res;
}