From: Scott MacVicar Date: Sun, 9 Mar 2008 21:32:38 +0000 (+0000) Subject: MFB: Fix memory issues with statement being deleted twice X-Git-Tag: RELEASE_2_0_0a1~193 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=b5e9791b40029ccec872a5cf015da0698b1a0683;p=php MFB: Fix memory issues with statement being deleted twice --- diff --git a/ext/sqlite/sqlite.c b/ext/sqlite/sqlite.c index bb444cd6f4..8becfea68b 100644 --- a/ext/sqlite/sqlite.c +++ b/ext/sqlite/sqlite.c @@ -454,10 +454,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)