diff options
author | 2019-09-17 17:04:46 +0100 | |
---|---|---|
committer | 2019-09-17 17:04:46 +0100 | |
commit | 6fbc924696b4b5097c273c06ca2d82662940e184 (patch) | |
tree | 640f35e079647eabd8caa9cf3e58e8105dd9b511 /Tools/c-analyzer | |
parent | bpo-38013: make async_generator_athrow object tolerant to throwing exceptions... (diff) | |
download | cpython-6fbc924696b4b5097c273c06ca2d82662940e184.tar.gz cpython-6fbc924696b4b5097c273c06ca2d82662940e184.tar.bz2 cpython-6fbc924696b4b5097c273c06ca2d82662940e184.zip |
bpo-38187: Fix reference leak in test_tools (GH-16233)
Diffstat (limited to 'Tools/c-analyzer')
-rw-r--r-- | Tools/c-analyzer/c_parser/info.py | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/Tools/c-analyzer/c_parser/info.py b/Tools/c-analyzer/c_parser/info.py index 9ab69797863..d7368b48cde 100644 --- a/Tools/c-analyzer/c_parser/info.py +++ b/Tools/c-analyzer/c_parser/info.py @@ -22,6 +22,9 @@ class Variable(_NTBase, __slots__ = () _isglobal = util.Slot() + def __del__(self): + del self._isglobal + @classonly def from_parts(cls, filename, funcname, name, vartype, isglobal=False): id = info.ID(filename, funcname, name) |