Skip to content

Commit

Permalink
Add missing locks
Browse files Browse the repository at this point in the history
refs #7251
  • Loading branch information
gunnarbeutner committed Oct 17, 2014
1 parent 3c68f1b commit 6193255
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions lib/cli/objectlistcommand.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -162,6 +162,8 @@ void ObjectListCommand::PrintProperties(std::ostream& fp, const Dictionary::Ptr&

int offset = 2;

ObjectLock olock(props);

BOOST_FOREACH(const Dictionary::Pair& kv, props) {
String key = kv.first;
Value val = kv.second;
Expand Down Expand Up @@ -195,6 +197,8 @@ void ObjectListCommand::PrintHints(std::ostream& fp, const Dictionary::Ptr& debu

Array::Ptr messages = debug_hints->Get("messages");

ObjectLock olock(messages);

BOOST_FOREACH(const Value& msg, messages) {
PrintHint(fp, msg, indent);
}
Expand Down

0 comments on commit 6193255

Please sign in to comment.