mirror of
https://github.com/python/cpython.git
synced 2025-07-12 13:55:34 +00:00
Closed resource leak in SysLogHandler.
This commit is contained in:
parent
9c18778695
commit
fd28502fcf
2 changed files with 28 additions and 31 deletions
|
@ -756,8 +756,7 @@ class SysLogHandler(logging.Handler):
|
|||
"""
|
||||
Closes the socket.
|
||||
"""
|
||||
if self.unixsocket:
|
||||
self.socket.close()
|
||||
self.socket.close()
|
||||
logging.Handler.close(self)
|
||||
|
||||
def mapPriority(self, levelName):
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue