From 3e6cbf178b6222a9c7308709ae96fea806f7f701 Mon Sep 17 00:00:00 2001 From: Thomas Heller Date: Fri, 13 Jul 2007 19:48:40 +0000 Subject: For easier merging, revert ths change; it will be brought back in when the trunk is merged. --- Modules/_ctypes/stgdict.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/Modules/_ctypes/stgdict.c b/Modules/_ctypes/stgdict.c index b4a6e87..fd6f5e2 100644 --- a/Modules/_ctypes/stgdict.c +++ b/Modules/_ctypes/stgdict.c @@ -457,11 +457,13 @@ StructUnionType_update_stgdict(PyObject *type, PyObject *fields, int isStruct) if (!prop) { Py_DECREF(pair); + Py_DECREF((PyObject *)stgdict); return -1; } if (-1 == PyDict_SetItem(realdict, name, prop)) { Py_DECREF(prop); Py_DECREF(pair); + Py_DECREF((PyObject *)stgdict); return -1; } Py_DECREF(pair); -- cgit v0.12