diff options
Diffstat (limited to 'TAO/tao/IIOP_Connector.cpp')
-rw-r--r-- | TAO/tao/IIOP_Connector.cpp | 12 |
1 files changed, 7 insertions, 5 deletions
diff --git a/TAO/tao/IIOP_Connector.cpp b/TAO/tao/IIOP_Connector.cpp index 518f8bbf053..2a7916c4554 100644 --- a/TAO/tao/IIOP_Connector.cpp +++ b/TAO/tao/IIOP_Connector.cpp @@ -311,11 +311,13 @@ TAO_IIOP_Connector::make_profile (const char *endpoint, // // //host:port/object_key - ACE_NEW_RETURN (profile, - TAO_IIOP_Profile (endpoint, - this->orb_core_, - ACE_TRY_ENV), - -1); + ACE_NEW_THROW_EX (profile, + TAO_IIOP_Profile (endpoint, + this->orb_core_, + ACE_TRY_ENV), + CORBA::NO_MEMORY ()); + + ACE_CHECK_RETURN (-1); return 0; // Success } |