summaryrefslogtreecommitdiff
path: root/ext/pdo_mysql/mysql_statement.c
diff options
context:
space:
mode:
authorAntony Dovgal <tony2001@php.net>2005-11-30 11:33:07 +0000
committerAntony Dovgal <tony2001@php.net>2005-11-30 11:33:07 +0000
commit22efcfd5307511a54f621562b37ed5cd51868304 (patch)
tree0cb73795f6ebc458cd664a8ca057dc203cc1d34c /ext/pdo_mysql/mysql_statement.c
parent6357acc086dfb875d219800985e4f3a217879ee7 (diff)
downloadphp-git-22efcfd5307511a54f621562b37ed5cd51868304.tar.gz
MFH: fix possible crash in pdo_mysql_stmt_dtor()
Diffstat (limited to 'ext/pdo_mysql/mysql_statement.c')
-rwxr-xr-xext/pdo_mysql/mysql_statement.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/ext/pdo_mysql/mysql_statement.c b/ext/pdo_mysql/mysql_statement.c
index 5842fdde32..b888ec36e9 100755
--- a/ext/pdo_mysql/mysql_statement.c
+++ b/ext/pdo_mysql/mysql_statement.c
@@ -42,7 +42,7 @@ static int pdo_mysql_stmt_dtor(pdo_stmt_t *stmt TSRMLS_DC)
S->result = NULL;
}
if (S->einfo.errmsg) {
- efree(S->einfo.errmsg);
+ pefree(S->einfo.errmsg, stmt->dbh->is_persistent);
S->einfo.errmsg = NULL;
}
#if HAVE_MYSQL_STMT_PREPARE