remove some manual free()s and mixed new/free()

This commit is contained in:
Mathias Stearn
2010-02-12 14:06:01 -05:00
parent 1799de1152
commit 0bf045c2e1
4 changed files with 13 additions and 23 deletions

View File

@@ -298,7 +298,7 @@ namespace mongo {
i = 0;
while( argv_[ i ] )
free( argv_[ i++ ] );
free( argv_ );
delete[] argv_;
if ( port_ > 0 )
dbs.insert( make_pair( port_, make_pair( pid_, pipeEnds[ 1 ] ) ) );