CVS update: php3/functions

From: Date: Thu, 22 Apr 1999 09:48:41 +0000
Subject: CVS update: php3/functions
Groups: php.dev 
Request: Send a blank email to php-dev+get-5197@lists.php.net to get a copy of this message
Date: Thursday April 22, 1999 @ 5:48 Author: thies Update of /repository/php3/functions In directory php:/tmp/cvs-serv410 Modified Files: oci8.c Log Message: minor mem fixes... Index: php3/functions/oci8.c diff -c php3/functions/oci8.c:1.83 php3/functions/oci8.c:1.84 *** php3/functions/oci8.c:1.83 Tue Apr 20 08:10:42 1999 --- php3/functions/oci8.c Thu Apr 22 05:48:41 1999 *************** *** 33,39 **** #define OCI8_USE_EMALLOC 0 /* set this to 1 if you want to use the php memory manager! */ ! /* $Id: oci8.c,v 1.83 1999/04/20 12:10:42 thies Exp $ */ /* TODO list: * --- 33,39 ---- #define OCI8_USE_EMALLOC 0 /* set this to 1 if you want to use the php memory manager! */ ! /* $Id: oci8.c,v 1.84 1999/04/22 09:48:41 thies Exp $ */ /* TODO list: * *************** *** 467,472 **** --- 467,478 ---- _php3_hash_apply(OCI8_GLOBAL(php3_oci8_module).user,(int (*)(void *))_user_pcleanup); _php3_hash_apply(OCI8_GLOBAL(php3_oci8_module).server,(int (*)(void *))_server_pcleanup); + _php3_hash_destroy(OCI8_GLOBAL(php3_oci8_module).user); + _php3_hash_destroy(OCI8_GLOBAL(php3_oci8_module).server); + + free(OCI8_GLOBAL(php3_oci8_module).user); + free(OCI8_GLOBAL(php3_oci8_module).server); + OCIHandleFree((dvoid *) &OCI8_GLOBAL(php3_oci8_module).pEnv, OCI_HTYPE_ENV); #ifdef THREAD_SAFE *************** *** 567,573 **** if (column->is_descr) { _php3_hash_index_del(column->statement->conn->descriptors,(int) column->data); } else { ! if (! column->define) { efree(column->data); } } --- 573,579 ---- if (column->is_descr) { _php3_hash_index_del(column->statement->conn->descriptors,(int) column->data); } else { ! if ((! column->define) && column->data) { efree(column->data); } } -- PHP Development Mailing List http://www.php.net/ To unsubscribe send an empty message to php-dev-unsubscribe@lists.php.net For help: php-dev-help@lists.php.net

« previous php.dev (#5197) next »