diff options
author | schmidt <douglascraigschmidt@users.noreply.github.com> | 1997-11-16 20:49:24 +0000 |
---|---|---|
committer | schmidt <douglascraigschmidt@users.noreply.github.com> | 1997-11-16 20:49:24 +0000 |
commit | 41f86de03627c21b955cd71f69a94e9e8a140e66 (patch) | |
tree | 3202108cce8d7ece3c246e5068ccea2d14f2a522 /ace/INET_Addr.cpp | |
parent | adad3d28c3e4e8eca4f98a8602e5ebdc51ae2fd8 (diff) | |
download | ATCD-41f86de03627c21b955cd71f69a94e9e8a140e66.tar.gz |
*** empty log message ***
Diffstat (limited to 'ace/INET_Addr.cpp')
-rw-r--r-- | ace/INET_Addr.cpp | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/ace/INET_Addr.cpp b/ace/INET_Addr.cpp index 736038c6d92..74d66e138be 100644 --- a/ace/INET_Addr.cpp +++ b/ace/INET_Addr.cpp @@ -96,13 +96,13 @@ int ACE_INET_Addr::string_to_addr (const char s[]) { ACE_TRACE ("ACE_INET_Addr::string_to_addr"); - // Need to make a duplicate since we'll be overwriting the string. + int result; char *t; - ACE_ALLOCATOR_RETURN (t, ACE_OS::strdup (s), -1) + // Need to make a duplicate since we'll be overwriting the string. + ACE_ALLOCATOR_RETURN (t, ACE_OS::strdup (s), -1); char *ip_addr = ACE_OS::strchr (t, ':'); - int result; if (ip_addr == 0) // Assume it's a port number. { @@ -115,6 +115,7 @@ ACE_INET_Addr::string_to_addr (const char s[]) u_short port = (u_short) ACE_OS::atoi (ip_addr + 1); // Skip over ':' result = this->set (port, t); } + ACE_OS::free (ACE_MALLOC_T (t)); return result; } |