com php-src: Fixed releasing of hash_key: ext/mysqli/mysq li.c

From: Date: Thu, 19 Jun 2014 08:20:21 +0000
Subject: com php-src: Fixed releasing of hash_key: ext/mysqli/mysq li.c
Groups: php.cvs 
Request: Send a blank email to php-cvs+get-78983@lists.php.net to get a copy of this message
Commit: 46117aff497577fa5ae2563e29fa15480a45af5f Author: Xinchen Hui <laruence@php.net> Thu, 19 Jun 2014 16:20:21 +0800 Parents: 82823e1e963cdb7762ce24efdfbf29fffe424400 Branches: phpng Link: http://git.php.net/?p=php-src.git;a=commitdiff;h=46117aff497577fa5ae2563e29fa15480a45af5f Log: Fixed releasing of hash_key Changed paths: M ext/mysqli/mysqli.c Diff: diff --git a/ext/mysqli/mysqli.c b/ext/mysqli/mysqli.c index fa376a5..7dcc5b7 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)) {

« previous php.cvs (#78983) next »