summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorOssama Othman <ossama-othman@users.noreply.github.com>1999-12-13 00:03:12 +0000
committerOssama Othman <ossama-othman@users.noreply.github.com>1999-12-13 00:03:12 +0000
commit771d87be6c02581f76760dbb132d1716e0e56a2f (patch)
treef97e4f5c17c59a10e8acd0b52ef23604d6e64cb3
parent77d7b106d0f2ca96df39686b8671988d24aef902 (diff)
downloadATCD-771d87be6c02581f76760dbb132d1716e0e56a2f.tar.gz
ChangeLogTag:Sun Dec 12 18:00:48 1999 Ossama Othman <othman@cs.wustl.edu>
-rw-r--r--TAO/tao/Acceptor_Registry.cpp9
1 files changed, 6 insertions, 3 deletions
diff --git a/TAO/tao/Acceptor_Registry.cpp b/TAO/tao/Acceptor_Registry.cpp
index 90f88d77af1..cf316bd0ed8 100644
--- a/TAO/tao/Acceptor_Registry.cpp
+++ b/TAO/tao/Acceptor_Registry.cpp
@@ -107,9 +107,12 @@ TAO_Acceptor_Registry::open (TAO_ORB_Core *orb_core,
// The array containing the TAO_Acceptors will never contain more
// than the number of endpoints stored in TAO_ORB_Parameters.
if (this->acceptors_ == 0)
- ACE_NEW_THROW_EX (this->acceptors_,
- TAO_Acceptor *[endpoint_set.size ()],
- CORBA::NO_MEMORY ());
+ {
+ ACE_NEW_THROW_EX (this->acceptors_,
+ TAO_Acceptor *[endpoint_set.size ()],
+ CORBA::NO_MEMORY ());
+ ACE_CHECK_RETURN (-1);
+ }
ACE_Auto_Basic_Array_Ptr <char> addr_str;