summaryrefslogtreecommitdiff
path: root/ext/pdo_mysql/mysql_statement.c
diff options
context:
space:
mode:
authorAntony Dovgal <tony2001@php.net>2005-11-30 11:32:33 +0000
committerAntony Dovgal <tony2001@php.net>2005-11-30 11:32:33 +0000
commit6fddd6f87893df1eec675fc93088e6ade1e52622 (patch)
treed79a08c87c392a8e50375f01dc98805d1916c52a /ext/pdo_mysql/mysql_statement.c
parentf79f89e2655589058a36605d1bd9b7e73544b5a5 (diff)
downloadphp-git-6fddd6f87893df1eec675fc93088e6ade1e52622.tar.gz
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 e8d1728598..2cbbaac8b8 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