From: Matteo Beccati Date: Tue, 12 May 2009 21:52:54 +0000 (+0000) Subject: - Fixed bug #48070 X-Git-Tag: php-5.4.0alpha1~191^2~3683 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=92288eca5c3a48646d8525d9d3f8dbc03b780b67;p=php - Fixed bug #48070 --- diff --git a/ext/pdo_oci/oci_driver.c b/ext/pdo_oci/oci_driver.c index a9e86901f1..6411836653 100755 --- a/ext/pdo_oci/oci_driver.c +++ b/ext/pdo_oci/oci_driver.c @@ -70,15 +70,13 @@ ub4 _oci_error(OCIError *err, pdo_dbh_t *dbh, pdo_stmt_t *stmt, char *what, swor S = (pdo_oci_stmt*)stmt->driver_data; einfo = &S->einfo; pdo_err = &stmt->error_code; - if (einfo->errmsg) { - efree(einfo->errmsg); - } } else { einfo = &H->einfo; - if (einfo->errmsg) { - pefree(einfo->errmsg, dbh->is_persistent); - } + } + + if (einfo->errmsg) { + pefree(einfo->errmsg, dbh->is_persistent); } einfo->errmsg = NULL;