From 7be13beddbf2ef403b23634d4c4e46b07c200907 Mon Sep 17 00:00:00 2001 From: Matteo Beccati Date: Tue, 12 May 2009 21:53:18 +0000 Subject: [PATCH] MFH - Fixed bug #48070 --- ext/pdo_oci/oci_driver.c | 10 ++++------ 1 file changed, 4 insertions(+), 6 deletions(-) diff --git a/ext/pdo_oci/oci_driver.c b/ext/pdo_oci/oci_driver.c index 18afb17a41e..a57d5a61ea7 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;