diff options
Diffstat (limited to 'TAO/TAO_IDL/be/be_visitor_operation/amh_rh_ss.cpp')
-rw-r--r-- | TAO/TAO_IDL/be/be_visitor_operation/amh_rh_ss.cpp | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/TAO/TAO_IDL/be/be_visitor_operation/amh_rh_ss.cpp b/TAO/TAO_IDL/be/be_visitor_operation/amh_rh_ss.cpp index d49e70e859f..3875db2d840 100644 --- a/TAO/TAO_IDL/be/be_visitor_operation/amh_rh_ss.cpp +++ b/TAO/TAO_IDL/be/be_visitor_operation/amh_rh_ss.cpp @@ -60,7 +60,9 @@ be_visitor_amh_rh_operation_ss::visit_operation (be_operation *node) intf->compute_full_name ("TAO_", "", buf); ACE_CString response_handler_implementation_name ("POA_"); response_handler_implementation_name += buf; - delete [] buf; + // buf was allocated by ACE_OS::strdup, so we need to use free instead + // of delete. + ACE_OS::free (buf); buf = 0; // Step 1 : Generate return type: always void @@ -176,7 +178,8 @@ be_visitor_amh_rh_operation_ss::visit_operation (be_operation *node) // Step 3: Generate actual code for the method *os << be_nl << "{" << be_idt_nl << "this->_tao_rh_init_reply (ACE_ENV_SINGLE_ARG_PARAMETER);" - << be_nl << be_nl; + << be_nl + << "ACE_CHECK;" << be_nl << be_nl; this->marshal_params (node); |