summaryrefslogtreecommitdiff
path: root/ace/Naming_Context.cpp
diff options
context:
space:
mode:
authorirfan <irfan@ae88bc3d-4319-0410-8dbf-d08b4c9d3795>1997-02-01 10:01:52 +0000
committerirfan <irfan@ae88bc3d-4319-0410-8dbf-d08b4c9d3795>1997-02-01 10:01:52 +0000
commitfa588f6bab7b72f0d6d49d7f5e6eff46eb04ebbb (patch)
tree6a146bd561aec0da75a9630185619a99dbd4b065 /ace/Naming_Context.cpp
parenteda7bc28bba8d4649e95d489e50832ba2cc1e723 (diff)
downloadATCD-fa588f6bab7b72f0d6d49d7f5e6eff46eb04ebbb.tar.gz
*** empty log message ***
Diffstat (limited to 'ace/Naming_Context.cpp')
-rw-r--r--ace/Naming_Context.cpp6
1 files changed, 4 insertions, 2 deletions
diff --git a/ace/Naming_Context.cpp b/ace/Naming_Context.cpp
index ed3e8c5fde1..8402d181fd7 100644
--- a/ace/Naming_Context.cpp
+++ b/ace/Naming_Context.cpp
@@ -388,6 +388,7 @@ void
ACE_Name_Options::namespace_dir (LPCTSTR dir)
{
ACE_TRACE ("ACE_Name_Options::namespace_dir");
+ ACE_OS::free ((void *) this->namespace_dir_ );
this->namespace_dir_ = ACE_OS::strdup (dir);
}
@@ -396,6 +397,7 @@ ACE_Name_Options::process_name (LPCTSTR pname)
{
ACE_TRACE ("ACE_Name_Options::process_name");
LPCTSTR t = ACE::basename (pname, ACE_DIRECTORY_SEPARATOR_CHAR);
+ ACE_OS::free ((void *) this->process_name_ );
this->process_name_ = ACE_OS::strdup (t);
}
@@ -403,6 +405,7 @@ void
ACE_Name_Options::nameserver_host (const char *host)
{
ACE_TRACE ("ACE_Name_Options::nameserver_host");
+ ACE_OS::free ((void *) this->nameserver_host_);
this->nameserver_host_ = ACE_OS::strdup (host);
}
@@ -424,8 +427,7 @@ void
ACE_Name_Options::database (LPCTSTR db)
{
ACE_TRACE ("ACE_Name_Options::database");
- if (this->database_ != 0)
- ACE_OS::free ((void *) this->database_);
+ ACE_OS::free ((void *) this->database_);
this->database_ = ACE_OS::strdup (db);
}