New submission from Christian Heimes:

In Python/pythonrun.c PyRun_SimpleFileExFlags() may leak a FILE pointer if 
closeit is False and maybe_pyc_file returns true. This happens when the 
filename ends with ".pyc" or ".pyc". In this case the file is opened a second 
time with fopen() a few lines lower and assigned to the same variable "fp". 
However "fp" is never closed.

The bug was found by Coverity as CID 719689.

Georg: I've set the priority to release blocker as a resource leak of a file 
pointer and therefore rare file descriptor is IMHO a severe issue.

----------
assignee: georg.brandl
files: closeown.patch
keywords: patch
messages: 170142
nosy: brett.cannon, christian.heimes, georg.brandl
priority: release blocker
severity: normal
stage: patch review
status: open
title: PyRun_SimpleFileExFlags() can leak a FILE pointer
type: resource usage
Added file: http://bugs.python.org/file27159/closeown.patch

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

Reply via email to