Skip to content

Commit

Permalink
Merge pull request #538 from sfc-aqua/delete-undisposed-objects
Browse files Browse the repository at this point in the history
Delete undisposed objects
  • Loading branch information
res6idue authored Sep 29, 2023
2 parents 348d286 + 5db9bbd commit db3ef6e
Showing 1 changed file with 6 additions and 5 deletions.
11 changes: 6 additions & 5 deletions quisp/modules/QRSA/RoutingDaemon/RoutingDaemon.cc
Original file line number Diff line number Diff line change
Expand Up @@ -141,24 +141,25 @@ int RoutingDaemon::getNumEndNodes() {
**/
void RoutingDaemon::handleMessage(cMessage *msg) {
if (auto pk = dynamic_cast<OspfHelloPacket *>(msg)) {
return ospfHandleHelloPacket(pk);
ospfHandleHelloPacket(pk);
}

if (auto pk = dynamic_cast<OspfDbdPacket *>(msg)) {
return ospfHandleDbdPacket(pk);
ospfHandleDbdPacket(pk);
}

if (auto pk = dynamic_cast<OspfLsrPacket *>(msg)) {
return ospfHandleLinkStateRequest(pk);
ospfHandleLinkStateRequest(pk);
}

if (auto pk = dynamic_cast<OspfLsuPacket *>(msg)) {
return ospfHandleLinkStateUpdate(pk);
ospfHandleLinkStateUpdate(pk);
}

if (auto pk = dynamic_cast<OspfLsAckPacket *>(msg)) {
return;
}
delete msg;
return;
}

/**
Expand Down

0 comments on commit db3ef6e

Please sign in to comment.