summaryrefslogtreecommitdiffstats
path: root/Objects/cobject.c
diff options
context:
space:
mode:
authorAntoine Pitrou <solipsis@pitrou.net>2008-08-29 18:39:48 (GMT)
committerAntoine Pitrou <solipsis@pitrou.net>2008-08-29 18:39:48 (GMT)
commitd4ae97bc38780aab5f348b73fee67eaab7546441 (patch)
tree62ef9d69e065bea64123dc4493ee955ac8553499 /Objects/cobject.c
parenta27e89bd04d8423dde480a9832400401b38bfc68 (diff)
downloadcpython-d4ae97bc38780aab5f348b73fee67eaab7546441.zip
cpython-d4ae97bc38780aab5f348b73fee67eaab7546441.tar.gz
cpython-d4ae97bc38780aab5f348b73fee67eaab7546441.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/cobject.c')
-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 *))
{