Skip to content

Commit

Permalink
memory leak--
Browse files Browse the repository at this point in the history
  • Loading branch information
henricasanova committed Nov 4, 2018
1 parent e462d35 commit d256bf4
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/wrench/simgrid_S4U_util/S4U_Daemon.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -167,9 +167,9 @@ namespace wrench {
}
this->s4u_actor->on_exit(daemon_goodbye, (void *) (this));

// Set the mailbox_name receiver
simgrid::s4u::MailboxPtr mailbox = simgrid::s4u::Mailbox::by_name(this->mailbox_name);
mailbox->set_receiver(this->s4u_actor);
// Set the mailbox_name receiver (causes memory leak)
// simgrid::s4u::MailboxPtr mailbox = simgrid::s4u::Mailbox::by_name(this->mailbox_name);
// mailbox->set_receiver(this->s4u_actor);
}
}

Expand Down

0 comments on commit d256bf4

Please sign in to comment.