Status: New
Owner: ----
Labels: Type-Defect Priority-Medium

New issue 937 by do.chuan: about delete entries
http://code.google.com/p/gears/issues/detail?id=937

the codes are:
base/common/thread_locals.cc

void ThreadLocals::DestroyEntries(Entry* entries) {
  for (int i = 0; i < kMaxSlots; ++i) {
    if (entries[i].valid_ && entries[i].destructor_) {
      entries[i].destructor_(entries[i].value_);
    }
    entries[i].valid_ = false;
  }
  delete entries;
}

"entries" is deleted by "delete" op, isn't it should be "delete []" ?

--
You received this message because you are listed in the owner
or CC fields of this issue, or because you starred this issue.
You may adjust your issue notification preferences at:
http://code.google.com/hosting/settings

Reply via email to