diff options
| author | David Barksdale <amatus@amat.us> | 2017-11-14 14:05:22 -0600 |
|---|---|---|
| committer | Brian Potchik <brian@vector35.com> | 2017-11-16 15:50:54 -0500 |
| commit | 661581594a014ceadc6284ef8c907162ef17380e (patch) | |
| tree | 805b63c03410b58505e93bd99095abdf1c1cb454 /python/function.py | |
| parent | 88af32b1b20026d3bc063be558f63aeb1ccfd579 (diff) | |
Cache Platform object and not handle
Diffstat (limited to 'python/function.py')
| -rw-r--r-- | python/function.py | 4 |
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): |
