--- parser3/src/main/pa_sql_driver_manager.C 2003/02/17 12:13:44 1.69.2.13 +++ parser3/src/main/pa_sql_driver_manager.C 2003/03/08 12:22:06 1.69.2.16 @@ -5,7 +5,7 @@ Author: Alexandr Petrosian (http://paf.design.ru) */ -static const char* IDENT_SQL_DRIVER_MANAGER_C="$Date: 2003/02/17 12:13:44 $"; +static const char* IDENT_SQL_DRIVER_MANAGER_C="$Date: 2003/03/08 12:22:06 $"; #include "pa_sql_driver_manager.h" #include "ltdl.h" @@ -84,6 +84,7 @@ SQL_ConnectionPtr SQL_Driver_manager::ge } } + CharPtr request_url_cstr_ptr; char *request_url_cstr; if(connection) request_url_cstr=0; // calm, compiler @@ -96,7 +97,7 @@ SQL_ConnectionPtr SQL_Driver_manager::ge // make global_url C-string on driver_cache_pool pool StringPtr global_url(new String(arequest_url->cstr(driver_cache_pool))); - request_url_cstr=arequest_url->cstr(); + request_url_cstr=request_url_cstr_ptr=arequest_url->cstr(); char *request_protocol_cstr=lsplit(&request_url_cstr, ':'); // skip "//" after ':' while(*request_url_cstr=='/') @@ -128,7 +129,7 @@ SQL_ConnectionPtr SQL_Driver_manager::ge library, "prepare to dynamic loading failed, %s", lt_dlerror()); - const char* filename=library->cstr(String::UL_FILE_SPEC); + CharPtr filename=library->cstr(String::UL_FILE_SPEC); lt_dlhandle handle=lt_dlopen(filename); if (!handle) throw Exception(0, @@ -206,6 +207,7 @@ void SQL_Driver_manager::put_driver_to_c } // connection cache +/// @todo get rid of memory spending Stack [zeros deep inside got accumulated] SQL_ConnectionPtr SQL_Driver_manager::get_connection_from_cache( connection_cache_type::key_type url) { SYNCHRONIZED;