tony2001 Wed Aug 9 11:49:06 2006 UTC Modified files: (Branch: PHP_5_2) /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.7.2.14.2.2&r2=1.7.2.14.2.3&diff_format=u Index: php-src/ext/oci8/oci8_statement.c diff -u php-src/ext/oci8/oci8_statement.c:1.7.2.14.2.2 php-src/ext/oci8/oci8_statement.c:1.7.2.14.2.3 --- php-src/ext/oci8/oci8_statement.c:1.7.2.14.2.2 Mon Jul 31 10:30:22 2006 +++ php-src/ext/oci8/oci8_statement.c Wed Aug 9 11:49:06 2006 @@ -25,7 +25,7 @@ +----------------------------------------------------------------------+ */ -/* $Id: oci8_statement.c,v 1.7.2.14.2.2 2006/07/31 10:30:22 tony2001 Exp $ */ +/* $Id: oci8_statement.c,v 1.7.2.14.2.3 2006/08/09 11:49:06 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