CVS update: php3/functions

From: Date: Wed, 04 Nov 1998 20:12:05 +0000
Subject: CVS update: php3/functions
Groups: php.dev 
Request: Send a blank email to php-dev+get-2199@lists.php.net to get a copy of this message
Date: Wednesday November 4, 1998 @ 15:12 Author: tommay Update of /repository/php3/functions In directory asf:/u2/tmp/cvs-serv14914 Modified Files: sybase-ct.c Log Message: Fixed a few small errors I made: use efree() on emalloc()ed memory in _php3_sybct_really_connect(), and initalize result to NULL in php3_sybct_query() so it doesn't get freed mistakenly on failure. Index: php3/functions/sybase-ct.c diff -c php3/functions/sybase-ct.c:1.51 php3/functions/sybase-ct.c:1.52 *** php3/functions/sybase-ct.c:1.51 Tue Nov 3 21:39:44 1998 --- php3/functions/sybase-ct.c Wed Nov 4 15:12:04 1998 *************** *** 27,33 **** +----------------------------------------------------------------------+ */ ! /* $Id: sybase-ct.c,v 1.51 1998/11/04 02:39:44 tommay Exp $ */ #ifndef MSVC5 --- 27,33 ---- +----------------------------------------------------------------------+ */ ! /* $Id: sybase-ct.c,v 1.52 1998/11/04 20:12:04 tommay Exp $ */ #ifndef MSVC5 *************** *** 530,536 **** if (_php3_hash_update(list,hashed_details,hashed_details_length+1,(void *) &new_index_ptr, sizeof(list_entry),NULL)==FAILURE) { ct_close(sybct_ptr->connection, CS_UNUSED); ct_con_drop(sybct_ptr->connection); ! free(sybct_ptr); efree(hashed_details); RETURN_FALSE; } --- 530,536 ---- if (_php3_hash_update(list,hashed_details,hashed_details_length+1,(void *) &new_index_ptr, sizeof(list_entry),NULL)==FAILURE) { ct_close(sybct_ptr->connection, CS_UNUSED); ct_con_drop(sybct_ptr->connection); ! efree(sybct_ptr); efree(hashed_details); RETURN_FALSE; } *************** *** 878,884 **** pval *query,*sybct_link_index; int id,type; sybct_link *sybct_ptr; ! sybct_result *result; CS_INT restype; CS_RETCODE retcode; enum { --- 878,884 ---- pval *query,*sybct_link_index; int id,type; sybct_link *sybct_ptr; ! sybct_result *result = NULL; CS_INT restype; CS_RETCODE retcode; enum { -- 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 (#2199) next »