From: Ilia Alshanetsky Date: Tue, 25 May 2004 16:49:32 +0000 (+0000) Subject: Cleanup. X-Git-Tag: php-5.0.0RC3RC1~36 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=cf75eb8a6fe6f9c620f0c4d78d7f37e017db5111;p=php Cleanup. --- diff --git a/ext/pdo/pdo_stmt.c b/ext/pdo/pdo_stmt.c index cd414d75d3..a1fa9bf2be 100755 --- a/ext/pdo/pdo_stmt.c +++ b/ext/pdo/pdo_stmt.c @@ -821,13 +821,11 @@ void pdo_dbstmt_free_storage(zend_object *object TSRMLS_DC) } zend_objects_store_del_ref(&stmt->database_object_handle TSRMLS_CC); -#if 0 - /* declared in the header, but not implemented... */ - zend_objects_store_delete_obj(&stmt->lazy_object_ref TSRMLS_CC); -#else - zend_objects_store_del_ref(&stmt->lazy_object_ref TSRMLS_CC); -#endif - +/* XXX: Does not appear to be needed and causes problems according to valgrind + if (&stmt->lazy_object_ref) { + zend_objects_store_del_ref(&stmt->lazy_object_ref TSRMLS_CC); + } +*/ efree(stmt); }