From 08b5500f4b8cbc71497f38e4550ff3ac1f3674de Mon Sep 17 00:00:00 2001 From: Scott MacVicar Date: Sun, 9 Mar 2008 21:30:28 +0000 Subject: Fix memory issues with statement being deleted twice --- ext/sqlite/sqlite.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'ext/sqlite/sqlite.c') diff --git a/ext/sqlite/sqlite.c b/ext/sqlite/sqlite.c index 983000c8c6..4cf7d95377 100644 --- a/ext/sqlite/sqlite.c +++ b/ext/sqlite/sqlite.c @@ -408,10 +408,10 @@ static int _clean_unfinished_results(zend_rsrc_list_entry *le, void *db TSRMLS_D if (Z_TYPE_P(le) == le_sqlite_result) { struct php_sqlite_result *res = (struct php_sqlite_result *)le->ptr; if (res->db->rsrc_id == ((struct php_sqlite_db*)db)->rsrc_id) { - real_result_dtor(res TSRMLS_CC); + return ZEND_HASH_APPLY_REMOVE; } } - return 0; + return ZEND_HASH_APPLY_KEEP; } static ZEND_RSRC_DTOR_FUNC(php_sqlite_result_dtor) -- cgit v1.2.1