summaryrefslogtreecommitdiff
path: root/ext/mysqli/mysqli.c
diff options
context:
space:
mode:
authorAntony Dovgal <tony2001@php.net>2007-10-16 13:18:55 +0000
committerAntony Dovgal <tony2001@php.net>2007-10-16 13:18:55 +0000
commit0655ad383363101dde04a9e98f540f6b54014f43 (patch)
tree5debee7eb4468adbd2275fd76a38e8e4909401e3 /ext/mysqli/mysqli.c
parent731a49ed0e6703e8830c0c61a8e2b86b2fa91224 (diff)
downloadphp-git-0655ad383363101dde04a9e98f540f6b54014f43.tar.gz
use zval_dtor() instead of efree() + FREE_ZVAL()
Diffstat (limited to 'ext/mysqli/mysqli.c')
-rw-r--r--ext/mysqli/mysqli.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/ext/mysqli/mysqli.c b/ext/mysqli/mysqli.c
index fd8b7f8244..8ac24ec89c 100644
--- a/ext/mysqli/mysqli.c
+++ b/ext/mysqli/mysqli.c
@@ -205,8 +205,7 @@ void php_clear_mysql(MY_MYSQL *mysql) {
mysql->hash_key = NULL;
}
if (mysql->li_read) {
- efree(Z_STRVAL_P(mysql->li_read));
- FREE_ZVAL(mysql->li_read);
+ zval_dtor(mysql->li_read);
mysql->li_read = NULL;
}
}