]> granicus.if.org Git - php/commitdiff
MFH: fix bug #29652
authorAntony Dovgal <tony2001@php.net>
Wed, 29 Sep 2004 06:43:29 +0000 (06:43 +0000)
committerAntony Dovgal <tony2001@php.net>
Wed, 29 Sep 2004 06:43:29 +0000 (06:43 +0000)
ext/oci8/oci8.c

index 597b177a49b10c3c5e98993e18d6273edfef71c7..7ba91c18fe133d9d303378377eca79c110a1231c 100644 (file)
@@ -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);
        }