]> granicus.if.org Git - php/commitdiff
- Fixed bug #48070
authorMatteo Beccati <mbeccati@php.net>
Tue, 12 May 2009 21:52:54 +0000 (21:52 +0000)
committerMatteo Beccati <mbeccati@php.net>
Tue, 12 May 2009 21:52:54 +0000 (21:52 +0000)
ext/pdo_oci/oci_driver.c

index a9e86901f11f3bae036c65e9e03edfa86268dbef..6411836653e6b0a01f471ccb43c64af584b6b28c 100755 (executable)
@@ -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;