summaryrefslogtreecommitdiff
path: root/ace/Acceptor.cpp
diff options
context:
space:
mode:
authorschmidt <douglascraigschmidt@users.noreply.github.com>1997-11-16 20:35:47 +0000
committerschmidt <douglascraigschmidt@users.noreply.github.com>1997-11-16 20:35:47 +0000
commite0344a5b656df3d5608232b41adaca49d108f51a (patch)
treef926f2a4b1471e7ecaf4c31d548b3fe7b6e328ff /ace/Acceptor.cpp
parent2ed313e0f57dcb370ab3853b9ac78eb839db95d9 (diff)
downloadATCD-e0344a5b656df3d5608232b41adaca49d108f51a.tar.gz
*** empty log message ***
Diffstat (limited to 'ace/Acceptor.cpp')
-rw-r--r--ace/Acceptor.cpp17
1 files changed, 12 insertions, 5 deletions
diff --git a/ace/Acceptor.cpp b/ace/Acceptor.cpp
index d1436a133fe..ebcf6acf924 100644
--- a/ace/Acceptor.cpp
+++ b/ace/Acceptor.cpp
@@ -425,10 +425,13 @@ ACE_Strategy_Acceptor<SVC_HANDLER, ACE_PEER_ACCEPTOR_2>::open
ACE_TRACE ("ACE_Strategy_Acceptor<SVC_HANDLER, ACE_PEER_ACCEPTOR_2>::open");
if (this->service_name_ == 0 && service_name != 0)
- this->service_name_ = ACE_OS::strdup (service_name);
+ ACE_ALLOCATOR_RETURN (this->service_name_,
+ ACE_OS::strdup (service_name),
+ -1);
if (this->service_description_ == 0 && service_description != 0)
- this->service_description_ = ACE_OS::strdup (service_description);
-
+ ACE_ALLOCATOR_RETURN (this->service_description_,
+ ACE_OS::strdup (service_description),
+ -1);
this->reactor (reactor);
// Must supply a valid Reactor to Acceptor::open()...
@@ -501,9 +504,13 @@ ACE_Strategy_Acceptor<SVC_HANDLER, ACE_PEER_ACCEPTOR_2>::ACE_Strategy_Acceptor
ACE_TRACE ("ACE_Strategy_Acceptor<SVC_HANDLER, ACE_PEER_ACCEPTOR_2>::ACE_Strategy_Acceptor");
if (service_name != 0)
- this->service_name_ = ACE_OS::strdup (service_name);
+ ACE_ALLOCATOR_RETURN (this->service_name_,
+ ACE_OS::strdup (service_name),
+ -1);
if (service_description != 0)
- this->service_description_ = ACE_OS::strdup (service_description);
+ ACE_ALLOCATOR_RETURN (this->service_description_,
+ ACE_OS::strdup (service_description),
+ -1);
}
template <class SVC_HANDLER, ACE_PEER_ACCEPTOR_1>