Commit 76f9e0d4 authored by Marian Triebe's avatar Marian Triebe

Fix heap-use-after-free in local_migration unit-test

parent 2f9c781e
......@@ -74,6 +74,7 @@ CAF_TEST(migrate_locally) {
auto a = spawn<migratable_actor>();
auto b = spawn<migratable_actor>();
auto mm1 = spawn(pseudo_mm, b);
{ // Lifetime scope of scoped_actor
scoped_actor self;
self->send(a, put_atom::value, 42);
// migrate from a to b
......@@ -107,5 +108,6 @@ CAF_TEST(migrate_locally) {
self->send_exit(mm1, exit_reason::kill);
self->send_exit(mm2, exit_reason::kill);
self->await_all_other_actors_done();
}
shutdown();
}
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment