helly Fri May 30 08:28:48 2003 EDT Modified files: /php4/ext/standard info.c Log: Fix memleaks (detected by [EMAIL PROTECTED]) Index: php4/ext/standard/info.c diff -u php4/ext/standard/info.c:1.235 php4/ext/standard/info.c:1.236 --- php4/ext/standard/info.c:1.235 Sat Apr 19 13:40:19 2003 +++ php4/ext/standard/info.c Fri May 30 08:28:48 2003 @@ -18,7 +18,7 @@ +----------------------------------------------------------------------+ */ -/* $Id: info.c,v 1.235 2003/04/19 17:40:19 sas Exp $ */ +/* $Id: info.c,v 1.236 2003/05/30 12:28:48 helly Exp $ */ #include "php.h" #include "php_ini.h" @@ -395,6 +395,7 @@ if (flag & PHP_INFO_GENERAL) { char *zend_version = get_zend_version(); char temp_api[9]; + char *logo_guid; php_uname = php_get_uname('a'); @@ -408,7 +409,9 @@ PUTS(SG(request_info).request_uri); } PUTS("?="); - PUTS(php_logo_guid()); + logo_guid = php_logo_guid(); + PUTS(logo_guid); + efree(logo_guid); PUTS("\" alt=\"PHP Logo\" /></a>"); } @@ -954,7 +957,7 @@ WRONG_PARAM_COUNT; } - RETURN_STRING(php_logo_guid(), 1); + RETURN_STRING(php_logo_guid(), 0); } /* }}} */
-- PHP CVS Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php