Closed resource leak in SysLogHandler.

This commit is contained in:
Vinay Sajip 2011-05-07 17:01:22 +01:00
parent 9c18778695
commit fd28502fcf
2 changed files with 28 additions and 31 deletions

View file

@ -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):