[Python-checkins] r50778 - python/trunk/Python/compile.c
neal.norwitz
python-checkins at python.org
Sun Jul 23 09:51:59 CEST 2006
Author: neal.norwitz
Date: Sun Jul 23 09:51:58 2006
New Revision: 50778
Modified:
python/trunk/Python/compile.c
Log:
If the for loop isn't entered, entryblock will be NULL. If passed
to stackdepth_walk it will be dereffed.
Not sure if I found with failmalloc or Klockwork #55.
Modified: python/trunk/Python/compile.c
==============================================================================
--- python/trunk/Python/compile.c (original)
+++ python/trunk/Python/compile.c Sun Jul 23 09:51:58 2006
@@ -4022,6 +4022,8 @@
b->b_startdepth = INT_MIN;
entryblock = b;
}
+ if (!entryblock)
+ return 0;
return stackdepth_walk(c, entryblock, 0, 0);
}
More information about the Python-checkins
mailing list