summaryrefslogtreecommitdiff
path: root/ext/mysqli/mysqli.c
diff options
context:
space:
mode:
authorXinchen Hui <laruence@php.net>2014-06-19 16:20:21 +0800
committerXinchen Hui <laruence@php.net>2014-06-19 16:20:21 +0800
commit46117aff497577fa5ae2563e29fa15480a45af5f (patch)
treeeb08eda6cc0c6626417c186f3bbe9061b9d28b70 /ext/mysqli/mysqli.c
parent82823e1e963cdb7762ce24efdfbf29fffe424400 (diff)
downloadphp-git-46117aff497577fa5ae2563e29fa15480a45af5f.tar.gz
Fixed releasing of hash_key
Diffstat (limited to 'ext/mysqli/mysqli.c')
-rw-r--r--ext/mysqli/mysqli.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/ext/mysqli/mysqli.c b/ext/mysqli/mysqli.c
index fa376a518a..7dcc5b7aec 100644
--- a/ext/mysqli/mysqli.c
+++ b/ext/mysqli/mysqli.c
@@ -185,7 +185,7 @@ void php_clear_stmt_bind(MY_STMT *stmt TSRMLS_DC)
/* {{{ php_clear_mysql */
void php_clear_mysql(MY_MYSQL *mysql) {
if (mysql->hash_key) {
- efree(mysql->hash_key);
+ STR_RELEASE(mysql->hash_key);
mysql->hash_key = NULL;
}
if (!Z_ISUNDEF(mysql->li_read)) {