mongodb/mongo-php-driver — pull request #12 by crodas (2011-12-15 00:02:54+00:00)
Title: Memory fix

A tiny memory fix, storeBytes was not freeing `zval * options`, when the third argument was missing. I created two tests, `tests/bug-memory-grifs-1.out` (still has issues, there is a bigger memory issue that I can't fix when a query runs a `array('safe' => true)`), and `tests/bug-memory-grifs-2.out` (which is fixed).

In order to reproduce this PHP must be compiled with `--enable-debug`