diff options
| author | Peter LaFosse <peter@vector35.com> | 2025-04-14 15:32:38 -0400 |
|---|---|---|
| committer | Peter LaFosse <peter@vector35.com> | 2025-04-29 09:16:13 -0400 |
| commit | 001bcb11b1305e470ea39f9e36a302f2a134c5d6 (patch) | |
| tree | 212988dea83d0e26341b6427c550784dc397298c /python/types.py | |
| parent | 6697a9d2ce4bf7d544f98dafea7edfaecd7b6731 (diff) | |
Fix memory leak in python Enumeration class
Diffstat (limited to 'python/types.py')
| -rw-r--r-- | python/types.py | 1 |
1 files changed, 0 insertions, 1 deletions
diff --git a/python/types.py b/python/types.py index 3b580a32..de3e707f 100644 --- a/python/types.py +++ b/python/types.py @@ -2768,7 +2768,6 @@ class EnumerationType(IntegerType): assert handle is not None, "Attempted to create EnumerationType without handle" super(EnumerationType, self).__init__(handle, platform, confidence) enum_handle = core.BNGetTypeEnumeration(handle) - core.BNNewEnumerationReference(enum_handle) assert enum_handle is not None, "core.BNGetTypeEnumeration returned None" self.enum_handle = enum_handle |
