--- parser3/src/targets/cgi/parser3.C 2003/02/17 11:42:33 1.216.2.5 +++ parser3/src/targets/cgi/parser3.C 2003/02/17 15:41:27 1.216.2.7 @@ -5,7 +5,7 @@ Author: Alexandr Petrosian (http://paf.design.ru) */ -static const char* IDENT_PARSER3_C="$Date: 2003/02/17 11:42:33 $"; +static const char* IDENT_PARSER3_C="$Date: 2003/02/17 15:41:27 $"; #include "pa_config_includes.h" @@ -29,17 +29,8 @@ static const char* IDENT_PARSER3_C="$Dat #endif //#define DEBUG_POOL_MALLOC -//#define DEBUG_STRING_APPENDS_VS_EXPANDS //#define DEBUG_MAILRECEIVE "mailreceive.eml" -#ifdef DEBUG_STRING_APPENDS_VS_EXPANDS -extern ulong - string_piece_appends, - wcontext_result_size, - total_alloc_size, - string_string_shortcut_economy; -#endif - // consts #define REDIRECT_PREFIX "REDIRECT_" @@ -321,9 +312,9 @@ static void real_parser_handler( request_info.uri=env_request_uri; else if(query_string) { - char *reconstructed_uri=(char *)request_pool.malloc( + char *reconstructed_uri=new(request_pool) char[ strlen(path_info)+1/*'?'*/+ - strlen(query_string)+1/*0*/); + strlen(query_string)+1/*0*/]; strcpy(reconstructed_uri, path_info); strcat(reconstructed_uri, "?"); strcat(reconstructed_uri, query_string); @@ -432,16 +423,6 @@ static void real_parser_handler( extern void log_pool_stats(Pool& pool); log_pool_stats(request_pool); #endif - -#ifdef DEBUG_STRING_APPENDS_VS_EXPANDS - SAPI::log(SAPI_info, - "string piece appends=%lu, wcontext_result_size=%lu, string_string_shortcut_economy_closer=%lu, total_alloc_size=%lu", - string_piece_appends, - wcontext_result_size, - string_string_shortcut_economy, - total_alloc_size); -#endif - } static void call_real_parser_handler__do_SEH(