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:
parent
d97fd357f7
commit
65b31a0ba6
@ -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();
|
||||
|
Loading…
Reference in New Issue
Block a user