diff options
author | Thomas Heller <theller@ctypes.org> | 2007-07-13 19:48:40 +0000 |
---|---|---|
committer | Thomas Heller <theller@ctypes.org> | 2007-07-13 19:48:40 +0000 |
commit | 1d66620b27ec36ef0a18eb1e61b9f2e97b87667d (patch) | |
tree | 4fc8f8f7e3f4151defca007569ecdc60ebb498ee /Modules/_ctypes | |
parent | 85f8b4be0842bcf014eb4db962cbcddffd865f9a (diff) | |
download | cpython-1d66620b27ec36ef0a18eb1e61b9f2e97b87667d.tar.gz |
For easier merging, revert ths change; it will be brought back in when
the trunk is merged.
Diffstat (limited to 'Modules/_ctypes')
-rw-r--r-- | Modules/_ctypes/stgdict.c | 2 |
1 files changed, 2 insertions, 0 deletions
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); |