summaryrefslogtreecommitdiff
path: root/ext/sqlite3/sqlite3.c
diff options
context:
space:
mode:
authorChristoph M. Becker <cmb@php.net>2016-06-27 17:18:44 +0200
committerChristoph M. Becker <cmb@php.net>2016-06-27 17:18:44 +0200
commit0d0f5976d8d7213cda759372e44ed2a6ce2d324d (patch)
tree0396fddfb2f0ed816eef011b1c9de362601a3a30 /ext/sqlite3/sqlite3.c
parent044e2718fec8d74f8430e7bdf3a41cc29085fed6 (diff)
parentb5fc4dbf210fdbf46b037996c8479d1844e81f5d (diff)
downloadphp-git-0d0f5976d8d7213cda759372e44ed2a6ce2d324d.tar.gz
Merge branch 'PHP-7.0'
Diffstat (limited to 'ext/sqlite3/sqlite3.c')
-rw-r--r--ext/sqlite3/sqlite3.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/ext/sqlite3/sqlite3.c b/ext/sqlite3/sqlite3.c
index df0c87576d..5ba59ad604 100644
--- a/ext/sqlite3/sqlite3.c
+++ b/ext/sqlite3/sqlite3.c
@@ -1318,6 +1318,12 @@ PHP_METHOD(sqlite3stmt, clear)
RETURN_FALSE;
}
+ if (stmt_obj->bound_params) {
+ zend_hash_destroy(stmt_obj->bound_params);
+ FREE_HASHTABLE(stmt_obj->bound_params);
+ stmt_obj->bound_params = NULL;
+ }
+
RETURN_TRUE;
}
/* }}} */