Skip to content

Commit

Permalink
Bug #52958 :: Segfault in PDO_OCI on cleanup after running a long tes…
Browse files Browse the repository at this point in the history
…tsuite.
  • Loading branch information
hswong3i committed Oct 17, 2012
1 parent 7aa3d0a commit 3c1f870
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions ext/pdo_oci/oci_driver.c
Expand Up @@ -227,8 +227,10 @@ static int oci_handle_closer(pdo_dbh_t *dbh TSRMLS_DC) /* {{{ */
H->server = NULL;
}

OCIHandleFree(H->err, OCI_HTYPE_ERROR);
H->err = NULL;
if (H->err) {
OCIHandleFree(H->err, OCI_HTYPE_ERROR);
H->err = NULL;
}

if (H->charset && H->env) {
OCIHandleFree(H->env, OCI_HTYPE_ENV);
Expand Down

0 comments on commit 3c1f870

Please sign in to comment.