mirror of
https://github.com/php/php-src.git
synced 2025-08-15 21:48:51 +02:00
Fix memory issues with statement being deleted twice
This commit is contained in:
parent
1f3b8cccc4
commit
08b5500f4b
1 changed files with 2 additions and 2 deletions
|
@ -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)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue