[issue13020] structseq.c: refleak

Torsten Landschoff report at bugs.python.org
Thu Jan 19 22:52:33 CET 2012


Torsten Landschoff <t.landschoff at gmx.net> added the comment:

+1 for the patch.
All the error paths above the change do

  Py_DECREF(arg);
  return NULL;

arg is initialized with PySequence_Fast, which returns a new reference.
Hard to create a test case for this...

----------
nosy: +torsten

_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue13020>
_______________________________________


More information about the Python-bugs-list mailing list