diff options
Diffstat (limited to 'ace/Strategies_T.cpp')
-rw-r--r-- | ace/Strategies_T.cpp | 19 |
1 files changed, 9 insertions, 10 deletions
diff --git a/ace/Strategies_T.cpp b/ace/Strategies_T.cpp index 55898c2ecc8..47a832cbb99 100644 --- a/ace/Strategies_T.cpp +++ b/ace/Strategies_T.cpp @@ -77,18 +77,17 @@ ACE_DLL_Strategy<SVC_HANDLER>::make_svc_handler (SVC_HANDLER *&sh) // Create an ACE_Service_Type containing the SVC_Handler and // insert into this->svc_rep_; - ACE_Service_Type_Impl *stp = - new ACE_Service_Object_Type (svc_handler, this->svc_name_); - - if (stp == 0) - { - errno = ENOMEM; - return -1; - } + ACE_Service_Type_Impl *stp; + ACE_NEW_RETURN (stp, + ACE_Service_Object_Type (svc_handler, + this->svc_name_), + -1); ACE_Service_Type *srp = - new ACE_Service_Type (this->svc_name_, stp, handle, 1); - + new ACE_Service_Type (this->svc_name_, + stp, + handle, + 1); if (srp == 0) { delete stp; |