diff options
author | coryan <coryan@ae88bc3d-4319-0410-8dbf-d08b4c9d3795> | 2001-03-20 17:49:23 +0000 |
---|---|---|
committer | coryan <coryan@ae88bc3d-4319-0410-8dbf-d08b4c9d3795> | 2001-03-20 17:49:23 +0000 |
commit | 6e40c3c16a19cf2539e25acc7a4ae26f2ccb29a0 (patch) | |
tree | e6c3805c986b231a161a39e395d818a214140371 /TAO/tao/Transport.cpp | |
parent | fc4b5450e12e9cf8f52479f104b71ed0976adfdb (diff) | |
download | ATCD-fix_bug132_iter02.tar.gz |
ChangeLogTag:Tue Mar 20 09:34:53 2001 Carlos O'Ryan <coryan@uci.edu>fix_bug132_iter02
Diffstat (limited to 'TAO/tao/Transport.cpp')
-rw-r--r-- | TAO/tao/Transport.cpp | 14 |
1 files changed, 9 insertions, 5 deletions
diff --git a/TAO/tao/Transport.cpp b/TAO/tao/Transport.cpp index 24e2ba58788..5466962b802 100644 --- a/TAO/tao/Transport.cpp +++ b/TAO/tao/Transport.cpp @@ -376,17 +376,21 @@ TAO_Transport::send_message_i (TAO_Stub *stub, { // ... we are going to block, so there is no need to clone // the message block... - queued_message = - new TAO_Queued_Message ( - ACE_const_cast(ACE_Message_Block*,message_block), - 0); + // @@ It seems wasteful to allocate a TAO_Queued_Message in + // this case, but it is simpler to do it this way. + ACE_NEW (queued_message, + TAO_Queued_Message ( + ACE_const_cast(ACE_Message_Block*,message_block), + 0), + -1); } else { queued_message = this->copy_message_block (message_block); + if (queued_message == 0) + return -1; } - // @@ Revisit message queue allocations if (TAO_debug_level > 6) { |