Christian Heimes added the comment:

The macro W_SIZE at 
http://hg.python.org/cpython/file/dbdb6f7f9a1a/Python/marshal.c#l130 has 
introduced a reference leak at
http://hg.python.org/cpython/file/dbdb6f7f9a1a/Python/marshal.c#l390 . Because 
W_SIZE returns in an error case the reference count of PyObject *utf8 isn't 
decreased. 

CID 1040640 (#1 of 1): Resource leak (RESOURCE_LEAK)
leaked_storage: Variable "utf8" going out of scope leaks the storage it points 
to.

----------
nosy: +christian.heimes
resolution: fixed -> 
stage: committed/rejected -> needs patch
status: closed -> open

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

Reply via email to