==22779== Invalid read of size 8
==22779== at 0x779AB54: phongo_cursor_it_invalidate_current (php_phongo.c:1305)
==22779== by 0x779ABE8: phongo_cursor_it_dtor (php_phongo.c:1313)
==22779== by 0x92E6F8: iter_wrapper_dtor (zend_iterators.c:61)
==22779== by 0x949705: zend_objects_store_call_destructors (zend_objects_API.c:57)
==22779== by 0x8EF347: shutdown_destructors (zend_execute_API.c:219)
==22779== by 0x9081CB: zend_call_destructors (zend.c:933)
==22779== by 0x846937: php_request_shutdown (main.c:1750)
==22779== by 0x9D46EB: do_cli (php_cli.c:1177)
==22779== by 0x9D5076: main (php_cli.c:1378)
==22779== Address 0x7d27900 is 64 bytes inside a block of size 96 free'd
==22779== at 0x4C2BE10: free (in /usr/lib/valgrind/vgpreload_memcheck-amd64-linux.so)
==22779== by 0x8C264D: _efree (zend_alloc.c:2437)
==22779== by 0x772FABC: php_phongo_queryresult_free_object (QueryResult.c:247)
==22779== by 0x94A2AA: zend_objects_store_del_ref_by_handle_ex (zend_objects_API.c:226)
==22779== by 0x949DD8: zend_objects_store_del_ref (zend_objects_API.c:178)
==22779== by 0x904A2D: _zval_dtor_func (zend_variables.c:54)
==22779== by 0x8EE168: _zval_dtor (zend_variables.h:35)
==22779== by 0x8EE262: i_zval_ptr_dtor (zend_execute.h:81)
==22779== by 0x8F04C4: _zval_ptr_dtor (zend_execute_API.c:426)
==22779== by 0x904E71: _zval_ptr_dtor_wrapper (zend_variables.c:182)
==22779== by 0x91E98F: zend_hash_apply_deleter (zend_hash.c:650)
==22779== by 0x91F04B: zend_hash_reverse_apply (zend_hash.c:804)