Merge "Remove unnecessary calls to LinkedList::clear()"

This commit is contained in:
Dmitriy Ivanov
2014-08-26 23:00:43 +00:00
committed by Gerrit Code Review

View File

@@ -639,8 +639,6 @@ ElfW(Sym)* dlsym_handle_lookup(soinfo* si, soinfo** found, const char* name) {
if (result != nullptr) { if (result != nullptr) {
*found = current_soinfo; *found = current_soinfo;
visit_list.clear();
visited.clear();
return result; return result;
} }
visited.push_back(current_soinfo); visited.push_back(current_soinfo);
@@ -650,8 +648,6 @@ ElfW(Sym)* dlsym_handle_lookup(soinfo* si, soinfo** found, const char* name) {
}); });
} }
visit_list.clear();
visited.clear();
return nullptr; return nullptr;
} }