Commit a5e76487 authored by Vinay Sajip's avatar Vinay Sajip

Fix resource leak reported in SF #1516995.

parent 2faa9e14
......@@ -555,6 +555,8 @@ def test5():
except KeyError:
logging.exception("just testing")
os.remove(fn)
hdlr = logging.getLogger().handlers[0]
logging.getLogger().handlers.remove(hdlr)
finally:
logging._acquireLock()
try:
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment