summaryrefslogtreecommitdiff
path: root/ext/sqlite3/sqlite3.c
diff options
context:
space:
mode:
authorChristoph M. Becker <cmb@php.net>2016-06-27 17:09:55 +0200
committerChristoph M. Becker <cmb@php.net>2016-06-27 17:09:55 +0200
commit0f03224d59cc746da4922a2c5a06122c0c21adc8 (patch)
tree256839b0ebe94858ee5b3861026d97adad5d39e3 /ext/sqlite3/sqlite3.c
parentad32c7b538de017d8273ecd00bb3710d7a9c586a (diff)
parent1314db71091a171e9c2a6b27a4a74c628e76ada9 (diff)
downloadphp-git-0f03224d59cc746da4922a2c5a06122c0c21adc8.tar.gz
Merge branch 'PHP-5.6' into 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 741a6ad0c2..9436c158b5 100644
--- a/ext/sqlite3/sqlite3.c
+++ b/ext/sqlite3/sqlite3.c
@@ -1333,6 +1333,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;
}
/* }}} */