#3668: When PyArg_ParseTuple correctly parses a s* format, but raises an
commit45bed95722630e1d0eff73fc7d33a4eefcdf1dec
authorantoine.pitrou <antoine.pitrou@6015fed2-1504-0410-9fe1-9d1591cc4771>
Fri, 29 Aug 2008 18:39:48 +0000 (29 18:39 +0000)
committerantoine.pitrou <antoine.pitrou@6015fed2-1504-0410-9fe1-9d1591cc4771>
Fri, 29 Aug 2008 18:39:48 +0000 (29 18:39 +0000)
tree59446f047858d5ba4ab8f9dc9c882a4f8fe0ead7
parent6ee6b9be5dae03605a8fceaa21c989dcf01a2469
#3668: When PyArg_ParseTuple correctly parses a s* format, but raises an
exception afterwards (for a subsequent parameter), the user code will
not call PyBuffer_Release() and memory will leak.

Reviewed by Amaury Forgeot d'Arc.

git-svn-id: http://svn.python.org/projects/python/trunk@66058 6015fed2-1504-0410-9fe1-9d1591cc4771
Include/cobject.h
Misc/NEWS
Objects/cobject.c
Python/getargs.c