Index: Objects/genobject.c =================================================================== --- Objects/genobject.c (Revision 52359) +++ Objects/genobject.c (Arbeitskopie) @@ -355,6 +355,7 @@ Py_DECREF(f); return NULL; } + Py_INCREF(f); gen->gi_frame = f; gen->gi_running = 0; gen->gi_weakreflist = NULL;