CVS update: php3

From: Date: Mon, 05 Oct 1998 17:32:12 +0000
Subject: CVS update: php3
Groups: php.dev 
Request: Send a blank email to php-dev+get-1688@lists.php.net to get a copy of this message
Date: Monday October 5, 1998 @ 13:32 Author: zeev Update of /repository/php3 In directory asf:/u2/tmp/cvs-serv13656 Modified Files: constants.c Log Message: Fix the memory leak Rasmus found Index: php3/constants.c diff -c php3/constants.c:1.18 php3/constants.c:1.19 *** php3/constants.c:1.18 Thu Sep 10 19:56:53 1998 --- php3/constants.c Mon Oct 5 13:32:11 1998 *************** *** 219,225 **** #endif php3_str_tolower(lowercase_name, c->name_len); ! _php3_hash_add(&GLOBAL(php3_constants), lowercase_name, c->name_len, (void *) c, sizeof(php3_constant), NULL); free(lowercase_name); } --- 219,227 ---- #endif php3_str_tolower(lowercase_name, c->name_len); ! if (_php3_hash_add(&GLOBAL(php3_constants), lowercase_name, c->name_len, (void *) c, sizeof(php3_constant), NULL)==FAILURE) { ! pval_destructor(&c->value); ! } free(lowercase_name); } -- 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 (#1688) next »