diff options
author | Steve Huston <shuston@riverace.com> | 2002-06-02 05:18:20 +0000 |
---|---|---|
committer | Steve Huston <shuston@riverace.com> | 2002-06-02 05:18:20 +0000 |
commit | 1a835d7087db904ab5d15b44733a1e84bc22a820 (patch) | |
tree | 83efe15158c2b6628d1a6041b07bf1f5ca87e179 /examples/C++NPv2 | |
parent | 2ae5d559964c5809e5a0b6042dbc17fb0d2f84c0 (diff) | |
download | ATCD-1a835d7087db904ab5d15b44733a1e84bc22a820.tar.gz |
Fix potential memory leak.
Diffstat (limited to 'examples/C++NPv2')
-rw-r--r-- | examples/C++NPv2/Reactor_Logging_Server_Adapter.cpp | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/examples/C++NPv2/Reactor_Logging_Server_Adapter.cpp b/examples/C++NPv2/Reactor_Logging_Server_Adapter.cpp index b2cdfe32562..c01c42c15ec 100644 --- a/examples/C++NPv2/Reactor_Logging_Server_Adapter.cpp +++ b/examples/C++NPv2/Reactor_Logging_Server_Adapter.cpp @@ -18,12 +18,12 @@ Reactor_Logging_Server_Adapter<ACCEPTOR>::init (int argc, char *char_argv[MAX_ARGS]; for (i = 0; i < argc && i < MAX_ARGS; ++i) char_argv[i] = ACE::strnew (ACE_TEXT_ALWAYS_CHAR (argv[i])); - ACE_NEW_RETURN (server_, - Reactor_Logging_Server<ACCEPTOR> - (i, char_argv, ACE_Reactor::instance ()), -1); + ACE_NEW_NORETURN (server_, + Reactor_Logging_Server<ACCEPTOR> + (i, char_argv, ACE_Reactor::instance ())); for (i = 0; i < argc && i < MAX_ARGS; ++i) ACE::strdelete (char_argv[i]); - return 0; + return server_ == 0 ? -1 : 0; } |