[pypy-svn] r7469 - pypy/trunk/src/pypy/translator

bob at codespeak.net bob at codespeak.net
Fri Nov 19 19:15:05 CET 2004


Author: bob
Date: Fri Nov 19 19:15:03 2004
New Revision: 7469

Modified:
   pypy/trunk/src/pypy/translator/genc.h
Log:
should actually be fixed now...



Modified: pypy/trunk/src/pypy/translator/genc.h
==============================================================================
--- pypy/trunk/src/pypy/translator/genc.h	(original)
+++ pypy/trunk/src/pypy/translator/genc.h	Fri Nov 19 19:15:03 2004
@@ -240,7 +240,6 @@
 	PyDict_SetItemString(locals, "signature", locals_signature);
 	PyDict_SetItemString(locals, "lineno", locals_lineno);
 	PyDict_SetItemString(locals, "filename", locals_filename);
-	Py_DECREF(locals);
 	Py_DECREF(locals_signature);
 	Py_DECREF(locals_lineno);
 	Py_DECREF(locals_filename);
@@ -248,6 +247,7 @@
 	c = getcode(c_signature, c_lineno);
 	if (c == NULL) {
 		callstack_depth--;
+		Py_DECREF(function);
 		Py_DECREF(args);
 		Py_DECREF(locals);
 		return NULL;
@@ -257,6 +257,7 @@
 		callstack_depth--;
 		Py_DECREF(c);
 		Py_DECREF(locals);
+		Py_DECREF(function);
 		Py_DECREF(args);
 		return NULL;
 	}
@@ -270,6 +271,7 @@
 		return NULL;
 	}
 	rval = PyObject_Call(function, args, NULL);
+	Py_DECREF(function);
 	Py_DECREF(args);
 	callstack_depth--;
 	if (rval == NULL) {



More information about the Pypy-commit mailing list