We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent c55c722 commit 69b6b8aCopy full SHA for 69b6b8a
binaryview.cpp
@@ -1611,7 +1611,8 @@ std::vector<Ref<Relocation>> BinaryView::GetRelocationsAt(uint64_t addr) const
1611
{
1612
size_t count = 0;
1613
BNRelocation** relocations = BNGetRelocationsAt(m_object, addr, &count);
1614
- std::vector<Ref<Relocation>> result(count);
+ std::vector<Ref<Relocation>> result;
1615
+ result.reserve(count);
1616
for (size_t i = 0; i < count; i++)
1617
1618
result.push_back(new Relocation(relocations[i]));
0 commit comments