einfo = &H->einfo;
+ if (einfo->errmsg) {
+ pefree(einfo->errmsg, dbh->is_persistent);
+ einfo->errmsg = NULL;
+ }
+
if (stmt) {
S = (pdo_oci_stmt*)stmt->driver_data;
einfo = &S->einfo;
OCIHandleFree(H->env, OCI_HTYPE_ENV);
H->env = NULL;
}
-
+
+ if (H->einfo.errmsg) {
+ pefree(H->einfo.errmsg, dbh->is_persistent);
+ H->einfo.errmsg = NULL;
+ }
+
pefree(H, dbh->is_persistent);
return 0;
stmt->bound_params = NULL;
}
+ if (S->einfo.errmsg) {
+ efree(S->einfo.errmsg);
+ S->einfo.errmsg = NULL;
+ }
+
if (S->cols) {
for (i = 0; i < stmt->column_count; i++) {
if (S->cols[i].data) {