This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

classification
Title: Memory leak in subprocess module
Type: Stage:
Components: Extension Modules Versions: Python 2.4
process
Status: closed Resolution: fixed
Dependencies: Superseder:
Assigned To: astrand Nosy List: astrand, georg.brandl, zseil
Priority: normal Keywords:

Created on 2006-06-04 03:30 by zseil, last changed 2022-04-11 14:56 by admin. This issue is now closed.

Messages (2)
msg28706 - (view) Author: Ziga Seilnacht (zseil) * (Python committer) Date: 2006-06-04 03:30
The memory leak is in _subprocess module in functions
getint and gethandle. They forget to decref the objects
returned by PyObject_GetAttrString(). The bug is
present in version 2.4 as well as in the trunk.

Few more bugs in the subprocess module that I found
while looking for the leak:

- class STARTUPINFO is missing a wShowWindow attribute
  (this is hidden because _subprocess.CreateProcess()
   ignores most of the exceptions)

- _execute_child() had a nonsensical test
  (if not None in tuple_of_posible_file_handles)

- _execute_child() is assigning attributes to a
  default_startupinfo, which isn't used if user
  supplies another one.
msg28707 - (view) Author: Georg Brandl (georg.brandl) * (Python committer) Date: 2006-06-04 22:16
Logged In: YES 
user_id=849994

Thanks! Fixed in rev. 46651, 46652.
History
Date User Action Args
2022-04-11 14:56:17adminsetgithub: 43452
2006-06-04 03:30:33zseilcreate