]> granicus.if.org Git - php/commitdiff
fix possible crash in pdo_mysql_stmt_dtor()
authorAntony Dovgal <tony2001@php.net>
Wed, 30 Nov 2005 11:32:33 +0000 (11:32 +0000)
committerAntony Dovgal <tony2001@php.net>
Wed, 30 Nov 2005 11:32:33 +0000 (11:32 +0000)
ext/pdo_mysql/mysql_statement.c

index e8d1728598136590d6936c5a8739216efb7be455..2cbbaac8b857e4f21dbe3691729acadcb82cfdac 100755 (executable)
@@ -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