Skip to content

Commit

Permalink
Remove unused canary cache
Browse files Browse the repository at this point in the history
  • Loading branch information
clubby789 committed Nov 11, 2022
1 parent 404a454 commit 7a0c42b
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions gef.py
Original file line number Diff line number Diff line change
Expand Up @@ -10444,7 +10444,6 @@ def reset_caches(self) -> None:
self._os = None
self._pid = None
self._file = None
self._canary = None
self._maps: Optional[pathlib.Path] = None
self._root: Optional[pathlib.Path] = None
return
Expand Down Expand Up @@ -10537,8 +10536,7 @@ def canary(self) -> Optional[Tuple[int, int]]:
# and zeroing the lowest byte
canary &= ~0xFF

self._canary = (canary, canary_location)
return self._canary
return canary, canary_location

@property
def maps(self) -> Optional[pathlib.Path]:
Expand Down

0 comments on commit 7a0c42b

Please sign in to comment.