tony2001                Wed Aug  9 11:48:50 2006 UTC

  Modified files:              
    /php-src/ext/oci8   oci8_statement.c 
  Log:
  fix leak on failure
  
  
http://cvs.php.net/viewvc.cgi/php-src/ext/oci8/oci8_statement.c?r1=1.21&r2=1.22&diff_format=u
Index: php-src/ext/oci8/oci8_statement.c
diff -u php-src/ext/oci8/oci8_statement.c:1.21 
php-src/ext/oci8/oci8_statement.c:1.22
--- php-src/ext/oci8/oci8_statement.c:1.21      Mon Jul 31 10:28:46 2006
+++ php-src/ext/oci8/oci8_statement.c   Wed Aug  9 11:48:50 2006
@@ -25,7 +25,7 @@
    +----------------------------------------------------------------------+
 */
 
-/* $Id: oci8_statement.c,v 1.21 2006/07/31 10:28:46 tony2001 Exp $ */
+/* $Id: oci8_statement.c,v 1.22 2006/08/09 11:48:50 tony2001 Exp $ */
 
 
 #ifdef HAVE_CONFIG_H
@@ -1364,6 +1364,7 @@
 
                        if (connection->errcode != OCI_SUCCESS) {
                                /* failed to convert string to date */
+                               efree(bind->array.element_lengths);
                                efree(bind->array.elements);
                                efree(bind);
                                php_oci_error(connection->err, 
connection->errcode TSRMLS_CC);
@@ -1378,6 +1379,7 @@
 
                        if (connection->errcode != OCI_SUCCESS) {
                                /* failed to convert string to date */
+                               efree(bind->array.element_lengths);
                                efree(bind->array.elements);
                                efree(bind);
                                php_oci_error(connection->err, 
connection->errcode TSRMLS_CC);

-- 
PHP CVS Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php

Reply via email to