diff --git a/src/log.cc b/src/log.cc index f8792647c9..27768d310e 100644 --- a/src/log.cc +++ b/src/log.cc @@ -396,8 +396,10 @@ class Logger::NameMap { void Remove(Address code_address) { HashMap::Entry* entry = FindEntry(code_address); - if (entry != NULL) DeleteArray(static_cast(entry->value)); - RemoveEntry(entry); + if (entry != NULL) { + DeleteArray(static_cast(entry->value)); + RemoveEntry(entry); + } } void Move(Address from, Address to) {