[svn:dbd-oracle] r13932 - dbd-oracle/trunk

[email protected]
Newsgroups perl.dbd.oracle.changes
Message-ID <[email protected]>
Author: byterock
Date: Tue Apr 27 11:10:42 2010
New Revision: 13932

Modified:
   dbd-oracle/trunk/Changes
   dbd-oracle/trunk/oci8.c

Log:
  Fix for memory leak when using prepared_cached and lobs reported by Mark Bobak and Martin Evans found and fixed by John Scoles


Modified: dbd-oracle/trunk/Changes
==============================================================================
--- dbd-oracle/trunk/Changes	(original)
+++ dbd-oracle/trunk/Changes	Tue Apr 27 11:10:42 2010
@@ -1,11 +1,14 @@
-=head1 Changes in DBD-Oracle 1.25(svn rev #####)
-  
+=head1 Changes in DBD-Oracle 1.25(svn rev )
+
   Patch for PL/SQL: numeric or value error: character string buffer too small from Scott T. Hildreth
   Fix for rt.cpan.org Ticket #=51594 type_info and type_info_all miss vital information from John Scoles
   Added ora_lob_is_init function by John Scoles
   Fix for rt.cpan.org Ticket #=55031 Ubuntu Server  Building with Oracle XE under 32-bit from Brian Candler 
   Fix for rt.cpan.org Ticket #=56810 bug with multiple nested cursor from John Scoles 
-  Fix for Patch bug found only on Big-Endian hardware reported by Timothy Everett and others from Charles Jardine 
+  Fix for bug found only on Big-Endian hardware reported by Timothy Everett and others from Charles Jardine 
+  Fix for memory leak when using prepared_cached and lobs reported by Mark Bobak and Martin Evans found and fixed by John Scoles
+
+  Added more entries to the Readmes from John Scoles
 
 =head1 Changes in DBD-Oracle 1.24(svn rev 13793)
 

Modified: dbd-oracle/trunk/oci8.c
==============================================================================
--- dbd-oracle/trunk/oci8.c	(original)
+++ dbd-oracle/trunk/oci8.c	Tue Apr 27 11:10:42 2010
@@ -1439,7 +1439,9 @@
 	D_imp_dbh_from_sth ;
 	sword status;
 	ub4 lobEmpty = 0;
-
+    if (phs->desc_h && phs->desc_t == OCI_DTYPE_LOB)
+		ora_free_templob(sth, imp_sth, (OCILobLocator*)phs->desc_h);
+		
 	if (!phs->desc_h) {
 		++imp_sth->has_lobs;
 		phs->desc_t = OCI_DTYPE_LOB;
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.