Skip to content

Commit 1499919

Browse files
committed
Fix memory leak in python Enumeration class
1 parent c2a48c0 commit 1499919

File tree

1 file changed

+0
-1
lines changed

1 file changed

+0
-1
lines changed

python/types.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2768,7 +2768,6 @@ def __init__(self, handle, platform: Optional['_platform.Platform'] = None, conf
27682768
assert handle is not None, "Attempted to create EnumerationType without handle"
27692769
super(EnumerationType, self).__init__(handle, platform, confidence)
27702770
enum_handle = core.BNGetTypeEnumeration(handle)
2771-
core.BNNewEnumerationReference(enum_handle)
27722771
assert enum_handle is not None, "core.BNGetTypeEnumeration returned None"
27732772
self.enum_handle = enum_handle
27742773

0 commit comments

Comments
 (0)