mongodb/mongo-php-driver — pull request #258 by bjori (2013-01-08 07:50:05+00:00)
Title: Fixed PHP-621 (double free)

We need to copy the elements from cleanup_ids to the array passed to
->remove() so that we can free the returned array without messing up
the cleanup_ids array which is freed later.

The options array should also be freed after each call