diff options
| author | Mason Reed <mason@vector35.com> | 2024-12-04 12:28:10 -0500 |
|---|---|---|
| committer | Mason Reed <mason@vector35.com> | 2024-12-04 18:17:52 -0500 |
| commit | 4a1a8ce0aa39a144034c2083b662248d994045e0 (patch) | |
| tree | 6160fb4ddaf6a8b7b9abc008add037521a3ddfc7 /binaryview.cpp | |
| parent | a03219926d8797bc57cb87339a3994faf30a44fa (diff) | |
Fix missing ref increment in BinaryView::GetRelocationsAt
Diffstat (limited to 'binaryview.cpp')
| -rw-r--r-- | binaryview.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/binaryview.cpp b/binaryview.cpp index f0969e9f..0aea134e 100644 --- a/binaryview.cpp +++ b/binaryview.cpp @@ -1750,7 +1750,7 @@ std::vector<Ref<Relocation>> BinaryView::GetRelocationsAt(uint64_t addr) const result.reserve(count); for (size_t i = 0; i < count; i++) { - result.push_back(new Relocation(relocations[i])); + result.push_back(new Relocation(BNNewRelocationReference(relocations[i]))); } BNFreeRelocationList(relocations, count); return result; |
