0
0
mirror of https://github.com/mongodb/mongo.git synced 2024-12-01 09:32:32 +01:00

Plug memory leak SERVER-1827

This commit is contained in:
Mathias Stearn 2010-09-22 19:22:27 -04:00
parent d97fd357f7
commit 65b31a0ba6

View File

@ -817,8 +817,10 @@ namespace mongo {
if ( _pq.isExplain()) {
_eb.noteScan( _c.get(), _nscanned, _nscannedObjects, _n, scanAndOrderRequired(), _curop.elapsedMillis(), useHints && !_pq.getHint().eoo(), _nYields , _nChunkSkips);
} else {
_response.appendData( _buf.buf(), _buf.len() );
_buf.decouple();
if (_buf.len()) {
_response.appendData( _buf.buf(), _buf.len() );
_buf.decouple();
}
}
if ( stop ) {
setStop();