mongodb/node-mongodb-native — pull request #633 by tikonen (2012-06-10 10:58:44+00:00)
Title: Memory leak fix?

Hi, we had serious memory leak on our production servers and after some grinding with valgrind, it reported huge number of leaks from this piece of code. After this commit, the reported memory leaks vanished.

For some reason I couldn't get tests to run with 'make test' (reported missing libraries) so I've been unable to validate if this change would break something. Can someone check this if its really legit leak and if fix is correct?