From e0344a5b656df3d5608232b41adaca49d108f51a Mon Sep 17 00:00:00 2001 From: schmidt Date: Sun, 16 Nov 1997 20:35:47 +0000 Subject: *** empty log message *** --- ace/Acceptor.cpp | 17 ++++++++++++----- 1 file changed, 12 insertions(+), 5 deletions(-) (limited to 'ace/Acceptor.cpp') 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::open ACE_TRACE ("ACE_Strategy_Acceptor::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::ACE_Strategy_Acceptor ACE_TRACE ("ACE_Strategy_Acceptor::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 -- cgit v1.2.1