From: Thomas Heller Date: Fri, 13 Jul 2007 19:48:40 +0000 (+0000) Subject: For easier merging, revert ths change; it will be brought back in when X-Git-Tag: v3.0a1~643 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=3e6cbf178b6222a9c7308709ae96fea806f7f701;p=python For easier merging, revert ths change; it will be brought back in when the trunk is merged. --- diff --git a/Modules/_ctypes/stgdict.c b/Modules/_ctypes/stgdict.c index b4a6e87f8c..fd6f5e2557 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);