Author: thomas.heller
Date: Fri Jul 13 21:48:40 2007
New Revision: 56356

Modified:
   python/branches/py3k-struni/Modules/_ctypes/stgdict.c
Log:
For easier merging, revert ths change; it will be brought back in when
the trunk is merged.


Modified: python/branches/py3k-struni/Modules/_ctypes/stgdict.c
==============================================================================
--- python/branches/py3k-struni/Modules/_ctypes/stgdict.c       (original)
+++ python/branches/py3k-struni/Modules/_ctypes/stgdict.c       Fri Jul 13 
21:48:40 2007
@@ -457,11 +457,13 @@
 
                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);
_______________________________________________
Python-3000-checkins mailing list
[email protected]
http://mail.python.org/mailman/listinfo/python-3000-checkins

Reply via email to