From 001bcb11b1305e470ea39f9e36a302f2a134c5d6 Mon Sep 17 00:00:00 2001 From: Peter LaFosse Date: Mon, 14 Apr 2025 15:32:38 -0400 Subject: Fix memory leak in python Enumeration class --- python/types.py | 1 - 1 file changed, 1 deletion(-) (limited to 'python/types.py') 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 -- cgit v1.3.1