fix possible crash in pdo_mysql_stmt_dtor()

This commit is contained in:
Antony Dovgal 2005-11-30 11:32:33 +00:00
parent f79f89e265
commit 6fddd6f878

View File

@ -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