Commit a8db77ad authored by Joseph Noir's avatar Joseph Noir

Avoid leaking groups

parent c1bfcd92
......@@ -163,7 +163,7 @@ expected<group> local_group_module::get(const std::string& group_name) {
auto ptr = make_counted<impl>(this, group_name);
ptr->intermediary_ = system().spawn<intermediary_actor, hidden>(ptr);
instances_.emplace(group_name, ptr);
return group{ptr.release()};
return group{std::move(ptr)};
}
}
......
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