[Python-3000-checkins] r56356 - python/branches/py3k-struni/Modules/_ctypes/stgdict.c

thomas.heller python-3000-checkins at python.org
Fri Jul 13 21:48:40 CEST 2007


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);


More information about the Python-3000-checkins mailing list