From: Antony Dovgal Date: Wed, 29 Sep 2004 06:43:29 +0000 (+0000) Subject: MFH: fix bug #29652 X-Git-Tag: php-5.0.3RC1~195 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=e81f5ce1370bbccfe1e8b1f6dd4931b3a9e2670a;p=php MFH: fix bug #29652 --- diff --git a/ext/oci8/oci8.c b/ext/oci8/oci8.c index 597b177a49..7ba91c18fe 100644 --- a/ext/oci8/oci8.c +++ b/ext/oci8/oci8.c @@ -3009,6 +3009,16 @@ static void _oci_close_session(oci_session *session) } mutex_unlock(mx_lock); +#ifdef HAVE_OCI_9_2 + /* free environment handle (and fix bug #29652 with growing .msb FD number under weirdie Solarises) */ + CALL_OCI( + OCIHandleFree( + (dvoid *) session->pEnv, + OCI_HTYPE_ENV + ) + ); +#endif + if (session->exclusive) { efree(session); }