diff options
author | Phil Mesnier <mesnier_p@ociweb.com> | 2014-05-02 14:30:47 +0000 |
---|---|---|
committer | Phil Mesnier <mesnier_p@ociweb.com> | 2014-05-02 14:30:47 +0000 |
commit | 1280bf1c1311f45abc9f65df8f65c7f065928a52 (patch) | |
tree | e58b6ce2d339970d8ab9fd77cbe414f980a64030 /ACE/tests/Network_Adapters_Test.cpp | |
parent | e5beb9419777f3af15333ec1a8acfd2060c9465e (diff) | |
download | ATCD-1280bf1c1311f45abc9f65df8f65c7f065928a52.tar.gz |
Fri May 2 14:28:06 UTC 2014 Phil Mesnier <mesnier_p@ociweb.com>
* ace/config-macosx-leopard.h:
MacOS supports ICMP.
* tests/Bug_4055_Regression_Test.cpp:
* tests/Message_Block_Large_Copy_Test.cpp:
* tests/Monotonic_Message_Queue_Test.cpp:
* tests/Network_Adapters_Test.cpp:
clean up some valgrind leak reports.
Diffstat (limited to 'ACE/tests/Network_Adapters_Test.cpp')
-rw-r--r-- | ACE/tests/Network_Adapters_Test.cpp | 20 |
1 files changed, 18 insertions, 2 deletions
diff --git a/ACE/tests/Network_Adapters_Test.cpp b/ACE/tests/Network_Adapters_Test.cpp index 369a1c9d7a6..2b57d2ecad7 100644 --- a/ACE/tests/Network_Adapters_Test.cpp +++ b/ACE/tests/Network_Adapters_Test.cpp @@ -1059,8 +1059,7 @@ run_main (int argc, ACE_TCHAR *argv[]) // does *not* copy the timers, it just deletes the existing timer // queue .... main_reactor->timer_queue(tq.get()); - // ... the reactor has assumed ownership, release the auto_ptr<> ... - tq.release(); + // ... the reactor does not assume ownership /** * Stop_Handler's is supposed to stop the activity of all @@ -1106,6 +1105,11 @@ run_main (int argc, ACE_TCHAR *argv[]) 2, // max_attempts_number local_adapter) == -1) { + delete ping_handler; + delete [] ping_status; + delete stop_handler; + delete main_reactor; + // If this process doesn't have privileges to open a raw socket, log // a warning instead of an error. if (errno == EPERM || errno == EACCES) @@ -1137,6 +1141,11 @@ run_main (int argc, ACE_TCHAR *argv[]) ping_status, 2) == -1) // max_attempts_number { + delete ping_handler; + delete [] ping_status; + delete stop_handler; + delete main_reactor; + if (errno == EPERM || errno == EACCES) { ACE_ERROR ((LM_WARNING, @@ -1164,6 +1173,13 @@ run_main (int argc, ACE_TCHAR *argv[]) ACE_ERROR ((LM_ERROR, ACE_TEXT ("(%P|%t) %p\n"), ACE_TEXT ("main() - repeats_handler->open"))); + + delete repeats_handler; + delete ping_handler; + delete [] ping_status; + delete stop_handler; + delete main_reactor; + ACE_OS::exit (-4); } |