summaryrefslogtreecommitdiff
path: root/python
diff options
context:
space:
mode:
Diffstat (limited to 'python')
-rw-r--r--python/binaryview.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/python/binaryview.py b/python/binaryview.py
index 9b391cf5..cb671d58 100644
--- a/python/binaryview.py
+++ b/python/binaryview.py
@@ -8741,7 +8741,7 @@ class BinaryView:
for i in range(count.value):
new_handle = core.BNNewExternalLocationReference(handles[i])
assert new_handle is not None, "core.BNNewExternalLocationReference returned None"
- result.append(externallibrary.ExternalLocation(handles[i]))
+ result.append(externallibrary.ExternalLocation(new_handle))
return result
finally:
core.BNFreeExternalLocationList(handles, count.value)