[issue43050] threading timer memory leak

2021-01-27 Thread fengjiang
fengjiang added the comment: yes, I find similar issues,the use the patch(https://github.com/python/cpython/pull/15228/files) to fix the bug -- ___ Python tracker <https://bugs.python.org/issue43

[issue43050] threading timer memory leak

2021-01-27 Thread fengjiang
New submission from fengjiang : Hi,we are transfering code from python2.7 to 3.7 and find that using threading.timer will cause memory leak. It works fine in python2.7 but not 3.7. To repreduce the problem, you can simply run the code below. While True: timer = threading.Timer(5, None