Skip to content

Commit

Permalink
Fix stack-use-after-scope
Browse files Browse the repository at this point in the history
  • Loading branch information
rbx authored and dennisklein committed Jun 24, 2021
1 parent 5c9ba5e commit 4fdf9d3
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 2 deletions.
1 change: 0 additions & 1 deletion fairmq/zeromq/Context.h
Original file line number Diff line number Diff line change
Expand Up @@ -94,7 +94,6 @@ class Context
{
std::unique_lock<std::mutex> lock(fMtx);
while (fRegionEventsSubscriptionActive) {

while (!fRegionEvents.empty()) {
auto i = fRegionEvents.front();
fRegionEventCallback(i);
Expand Down
2 changes: 1 addition & 1 deletion test/region/_region.cxx
Original file line number Diff line number Diff line change
Expand Up @@ -110,7 +110,7 @@ void RegionEventSubscriptions(const string& transport)
ASSERT_EQ(region2->GetSize(), size2);

ASSERT_EQ(factory->SubscribedToRegionEvents(), false);
factory->SubscribeToRegionEvents([&](FairMQRegionInfo info) {
factory->SubscribeToRegionEvents([&, id1, id2, ptr1, ptr2](FairMQRegionInfo info) {
LOG(info) << ">>> " << info.event << ": "
<< (info.managed ? "managed" : "unmanaged")
<< ", id: " << info.id
Expand Down

0 comments on commit 4fdf9d3

Please sign in to comment.