diff Python/bltinmodule.c @ 59189:88f147d26372

check PyDict_New() for error
author Benjamin Peterson <benjamin@python.org>
date Sat, 27 Feb 2010 17:41:13 +0000
parents 81d6833c6278
children e8b08d773e78
line wrap: on
line diff
--- a/Python/bltinmodule.c	Sat Feb 27 17:40:01 2010 +0000
+++ b/Python/bltinmodule.c	Sat Feb 27 17:41:13 2010 +0000
@@ -131,12 +131,12 @@
 		ns = PyEval_CallObjectWithKeywords(prep, pargs, mkw);
 		Py_DECREF(pargs);
 		Py_DECREF(prep);
-		if (ns == NULL) {
-			Py_DECREF(meta);
-			Py_XDECREF(mkw);
-			Py_DECREF(bases);
-			return NULL;
-		}
+	}
+	if (ns == NULL) {
+		Py_DECREF(meta);
+		Py_XDECREF(mkw);
+		Py_DECREF(bases);
+		return NULL;
 	}
 	cell = PyObject_CallFunctionObjArgs(func, ns, NULL);
 	if (cell != NULL) {