Skip to content

Commit 7b705d4

Browse files
committed
Fix memory leak in BinaryView::GetUniqueSectionNames
1 parent 89afd16 commit 7b705d4

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

binaryview.cpp

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4868,6 +4868,7 @@ vector<string> BinaryView::GetUniqueSectionNames(const vector<string>& names)
48684868
for (size_t i = 0; i < names.size(); i++)
48694869
result.push_back(outgoingNames[i]);
48704870

4871+
delete[] incomingNames;
48714872
BNFreeStringList(outgoingNames, names.size());
48724873
return result;
48734874
}

0 commit comments

Comments
 (0)