diff options
author | Vinay Sajip <vinay_sajip@yahoo.co.uk> | 2011-05-07 16:01:22 (GMT) |
---|---|---|
committer | Vinay Sajip <vinay_sajip@yahoo.co.uk> | 2011-05-07 16:01:22 (GMT) |
commit | fd28502fcfdbd6ee6e265570a09236ceaade06ee (patch) | |
tree | e4fb03a4317a9db3e5c9855da46ceb8968e0f7df /Lib/logging/handlers.py | |
parent | 9c18778695ab002789849e385eeb9d270633a5c6 (diff) | |
download | cpython-fd28502fcfdbd6ee6e265570a09236ceaade06ee.zip cpython-fd28502fcfdbd6ee6e265570a09236ceaade06ee.tar.gz cpython-fd28502fcfdbd6ee6e265570a09236ceaade06ee.tar.bz2 |
Closed resource leak in SysLogHandler.
Diffstat (limited to 'Lib/logging/handlers.py')
-rw-r--r-- | Lib/logging/handlers.py | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/Lib/logging/handlers.py b/Lib/logging/handlers.py index a0b53e8..f17db0e 100644 --- a/Lib/logging/handlers.py +++ b/Lib/logging/handlers.py @@ -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): |