[Python-bugs-list] [ python-Bugs-478005 ] possible memory leak in posixmodule.c

noreply@sourceforge.net noreply@sourceforge.net
Sun, 04 Nov 2001 07:05:04 -0800


Bugs item #478005, was opened at 2001-11-04 07:05
You can respond by visiting: 
http://sourceforge.net/tracker/?func=detail&atid=105470&aid=478005&group_id=5470

Category: Extension Modules
Group: Python 2.2
Status: Open
Resolution: None
Priority: 5
Submitted By: Neal Norwitz (nnorwitz)
Assigned to: Nobody/Anonymous (nobody)
Summary: possible memory leak in posixmodule.c

Initial Comment:
when posix_error is called a PyObject is returned,
then ignored in the caller.

it seems that this might lead to memory leaks.
this patch calls Py_DECREF(posix_error())
in all the places that previously ignored the return
value.

i'm not sure if this is correct or not.
i didn't find any problems with the regression
tests when running with this patch.

----------------------------------------------------------------------

You can respond by visiting: 
http://sourceforge.net/tracker/?func=detail&atid=105470&aid=478005&group_id=5470