Get rid of unnecessary wrapping a statement in a free list object

This simplifies the code and reduces memory usage.
This commit is contained in:
Niels Dossche 2025-02-09 18:54:17 +01:00
parent 43ac692a09
commit bc74cff479
2 changed files with 13 additions and 35 deletions

View file

@ -89,12 +89,6 @@ typedef struct _php_sqlite3_agg_context {
typedef struct _php_sqlite3_stmt_object php_sqlite3_stmt;
typedef struct _php_sqlite3_result_object php_sqlite3_result;
/* sqlite3 objects to be destroyed */
typedef struct _php_sqlite3_free_list {
zval stmt_obj_zval;
php_sqlite3_stmt *stmt_obj;
} php_sqlite3_free_list;
/* Structure for SQLite Result object. */
struct _php_sqlite3_result_object {
php_sqlite3_db_object *db_obj;