From cf75eb8a6fe6f9c620f0c4d78d7f37e017db5111 Mon Sep 17 00:00:00 2001 From: Ilia Alshanetsky Date: Tue, 25 May 2004 16:49:32 +0000 Subject: [PATCH] Cleanup. --- ext/pdo/pdo_stmt.c | 12 +++++------- 1 file changed, 5 insertions(+), 7 deletions(-) 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); } -- 2.50.1