summaryrefslogtreecommitdiffstats
path: root/Objects
diff options
context:
space:
mode:
authorAntoine Pitrou <solipsis@pitrou.net>2008-08-29 18:37:05 (GMT)
committerAntoine Pitrou <solipsis@pitrou.net>2008-08-29 18:37:05 (GMT)
commitf7199578be41182fcbcd0350521f9545210e0ddd (patch)
treea0266cbfeb6d6f2d841a2c742cbf007c108860e2 /Objects
parentdb26f7c13748db526e52501d3ba2856a6e30c7a5 (diff)
downloadcpython-f7199578be41182fcbcd0350521f9545210e0ddd.zip
cpython-f7199578be41182fcbcd0350521f9545210e0ddd.tar.gz
cpython-f7199578be41182fcbcd0350521f9545210e0ddd.tar.bz2
#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.
Diffstat (limited to 'Objects')
-rw-r--r--Objects/cobject.c7
1 files changed, 0 insertions, 7 deletions
diff --git a/Objects/cobject.c b/Objects/cobject.c
index a1ee686..c437491 100644
--- a/Objects/cobject.c
+++ b/Objects/cobject.c
@@ -9,13 +9,6 @@
typedef void (*destructor1)(void *);
typedef void (*destructor2)(void *, void*);
-typedef struct {
- PyObject_HEAD
- void *cobject;
- void *desc;
- void (*destructor)(void *);
-} PyCObject;
-
PyObject *
PyCObject_FromVoidPtr(void *cobj, void (*destr)(void *))
{