]> granicus.if.org Git - python/commit
#3668: When PyArg_ParseTuple correctly parses a s* format, but raises an
authorAntoine Pitrou <solipsis@pitrou.net>
Fri, 29 Aug 2008 18:37:05 +0000 (18:37 +0000)
committerAntoine Pitrou <solipsis@pitrou.net>
Fri, 29 Aug 2008 18:37:05 +0000 (18:37 +0000)
commitf7199578be41182fcbcd0350521f9545210e0ddd
treea0266cbfeb6d6f2d841a2c742cbf007c108860e2
parentdb26f7c13748db526e52501d3ba2856a6e30c7a5
#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.
Include/cobject.h
Misc/NEWS
Objects/cobject.c
Python/getargs.c