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

index 5842fdde325122e45c2d2d3b4d4779f3d6fec112..b888ec36e9b79651612da24842cb84d266ee7458 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