summaryrefslogtreecommitdiff
path: root/python
diff options
context:
space:
mode:
authorDavid Barksdale <amatus@amat.us>2017-11-14 14:05:22 -0600
committerBrian Potchik <brian@vector35.com>2017-11-16 15:50:54 -0500
commit661581594a014ceadc6284ef8c907162ef17380e (patch)
tree805b63c03410b58505e93bd99095abdf1c1cb454 /python
parent88af32b1b20026d3bc063be558f63aeb1ccfd579 (diff)
Cache Platform object and not handle
Diffstat (limited to 'python')
-rw-r--r--python/function.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/python/function.py b/python/function.py
index bec3c2ad..9547e34a 100644
--- a/python/function.py
+++ b/python/function.py
@@ -378,8 +378,8 @@ class Function(object):
plat = core.BNGetFunctionPlatform(self.handle)
if plat is None:
return None
- self._platform = plat
- return platform.Platform(None, handle = plat)
+ self._platform = platform.Platform(None, handle = plat)
+ return self._platform
@property
def start(self):