Changeset 8606
- Timestamp:
- Sep 30, 2010, 4:34:31 PM (14 years ago)
- Location:
- source/ariba
- Files:
-
- 7 edited
Legend:
- Unmodified
- Added
- Removed
-
source/ariba/communication/BaseCommunication.cpp
r8597 r8606 294 294 receiveMessage(msg, dmsg->local, dmsg->remote); 295 295 msg->dropPayload(); 296 delete dmsg->local; 297 delete dmsg->remote; 298 delete msg; 296 299 delete dmsg; 297 delete msg;298 300 } 299 301 } … … 399 401 ld->remoteLocator, endpoint_set::Layer1_3 | endpoint_set::NoLoopback); 400 402 localDescriptor.getEndpoints().add( 401 local, endpoint_set::Layer1_3 | endpoint_set::NoLoopback 402 ); 403 local, endpoint_set::Layer1_3 | endpoint_set::NoLoopback); 403 404 404 405 // link is now up-> add it -
source/ariba/communication/networkinfo/AddressDiscovery.cpp
r7744 r8606 133 133 } 134 134 } 135 136 freeifaddrs(ifaceBuffer); 135 137 } 136 138 -
source/ariba/overlay/modules/OverlayInterface.h
r6919 r8606 79 79 80 80 /** 81 * Destr cuts the overlay.81 * Destructs the overlay. 82 82 */ 83 83 virtual ~OverlayInterface(); -
source/ariba/overlay/modules/chord/detail/chord_routing_table.hpp
r6919 r8606 184 184 } 185 185 186 virtual ~chord_routing_table() { 187 BOOST_FOREACH( finger_table* f, this->finger){ 188 delete f; 189 } 190 } 191 186 192 /// check whether a node could fit the routing table 187 193 bool is_insertable( const nodeid_t& value ) { -
source/ariba/utility/transport/tcpip/protlib/tp_over_tcp.cpp
r7040 r8606 253 253 if (newmsg) 254 254 { 255 newmsg->send_to(tpparam.source); 255 bool ret = newmsg->send_to(tpparam.source); 256 if(!ret) delete newmsg; 256 257 return assoc; 257 258 } … … 413 414 // both parameters will be freed after message was sent! 414 415 415 TPoverTCPMsg* internalmsg= new TPoverTCPMsg(netmsg,new appladdress(*addr)); 416 appladdress* apl=new appladdress(*addr); 417 TPoverTCPMsg* internalmsg= new TPoverTCPMsg(netmsg,apl); 416 418 if (internalmsg) 417 419 { 418 420 // send the internal message to the sender thread queue 419 internalmsg->send(tpparam.source,destqueue); 421 bool sent = internalmsg->send(tpparam.source,destqueue); 422 if (!sent) { 423 delete internalmsg->get_appladdr(); 424 delete internalmsg; 425 internalmsg = NULL; 426 } 420 427 } 421 428 } … … 659 666 if (internalmsg == 0) 660 667 { 661 ERRLog(tpparam.name, methodname << "received not an TPoverTCPMsg but a" << internal_thread_msg->get_type_name()); 668 ERRLog(tpparam.name, methodname << "received not an TPoverTCPMsg but a" << internal_thread_msg->get_type_name()); 662 669 } 663 670 else … … 694 701 { 695 702 terminate= true; 696 } 703 } 704 705 delete internalmsg; 697 706 } // end while 698 707 … … 929 938 if ( ret < 0 ) 930 939 { 940 delete netmsg; 931 941 if (errno!=EAGAIN && errno!=EWOULDBLOCK) 932 942 { … … 1106 1116 1107 1117 receiver_thread_argp->terminated= true; 1118 delete netmsg; 1108 1119 1109 1120 Log(DEBUG_LOG,LOG_NORMAL, tpparam.name, methodname << "Thread <" << pthread_self() << "> terminated"); … … 1701 1712 { 1702 1713 init= false; 1714 this->connmap.clear(); 1703 1715 1704 1716 Log(DEBUG_LOG,LOG_NORMAL, tpparam.name, "Destructor called"); -
source/ariba/utility/transport/tcpip/protlib/tp_over_tcp.h
r7038 r8606 247 247 message(type_transport, source), peer_assoc(0), type(send_data), netmsg(netmsg), addr(addr) {} 248 248 249 virtual ~TPoverTCPMsg() {} 250 249 251 const AssocData* get_peer_assoc() const { return peer_assoc; } 250 252 TPoverTCPMsg::msg_t get_msgtype() const { return type; } -
source/ariba/utility/transport/tcpip/tcpip.cpp
r6919 r8606 96 96 97 97 // unregister TPoverTCP 98 delete QueueManager::instance()->get_queue( message::qaddr_signaling ); 98 99 QueueManager::instance()->unregister_queue( message::qaddr_signaling ); 99 100 … … 104 105 protlib::setuid::end(); 105 106 protlib::tsdb::end(); 107 108 // wait for thread to finish and delete 109 pthread_join(tpreceivethread, NULL); 106 110 } 107 111 … … 167 171 TPMsg* tpmsg = dynamic_cast<TPMsg*> (msg); 168 172 if (!tpmsg) { 173 delete msg; 169 174 continue; 170 175 } … … 177 182 // not a data message? -> continue! 178 183 if (!datamsg) { 184 delete tpmsg; 179 185 continue; 180 186 } … … 184 190 uint32_t message_size = datamsg->decode32(true)-2; 185 191 //uint16_t remote_port = datamsg->decode16(true); 186 187 192 188 193 // inform listener … … 194 199 195 200 } 201 delete datamsg; 196 202 delete tpmsg; 197 203 }
Note:
See TracChangeset
for help on using the changeset viewer.