New submission from Serhiy Storchaka:

Aifc_write.close() can raise exception and left the internal file object not 
closed.  The patch closes the file object even in case of error and reset _file 
to None even in case of the file object close() raises an exception, so that 
Aifc_write.close() can be called repeatedly.

----------
components: Library (Lib)
files: aifc_close.patch
keywords: patch
messages: 175683
nosy: serhiy.storchaka
priority: normal
severity: normal
status: open
title: FD leaks in aifc module
type: resource usage
versions: Python 3.2, Python 3.3, Python 3.4
Added file: http://bugs.python.org/file27996/aifc_close.patch

_______________________________________
Python tracker <rep...@bugs.python.org>
<http://bugs.python.org/issue16485>
_______________________________________
_______________________________________________
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com

Reply via email to