Staging
v0.8.1
https://github.com/python/cpython
Revision 6d0bc3e9f4ca48e43b823f7c4207d5549824a24a authored by Andrew M. Kuchling on 05 October 2006, 19:25:26 UTC, committed by Andrew M. Kuchling on 05 October 2006, 19:25:26 UTC
Handle a whole lot of failures from PyString_FromInternedString().

Should fix most of Klocwork 234-272.

[Backport r51400 | neal.norwitz]

Move initialization of interned strings to before allocating the
object so we don't leak op.  (Fixes an earlier patch to this code)

Klockwork #350
1 parent 154a884
History
Tip revision: 6d0bc3e9f4ca48e43b823f7c4207d5549824a24a authored by Andrew M. Kuchling on 05 October 2006, 19:25:26 UTC
[Backport r51246 | neal.norwitz]
Tip revision: 6d0bc3e
File Mode Size
acceler.c -rw-r--r-- 2.8 KB
bitset.c -rw-r--r-- 949 bytes
firstsets.c -rw-r--r-- 2.2 KB
grammar.c -rw-r--r-- 5.2 KB
grammar.mak -rw-r--r-- 1.3 KB
grammar1.c -rw-r--r-- 1.0 KB
intrcheck.c -rw-r--r-- 2.4 KB
listnode.c -rw-r--r-- 983 bytes
metagrammar.c -rw-r--r-- 2.2 KB
myreadline.c -rw-r--r-- 5.4 KB
node.c -rw-r--r-- 3.5 KB
parser.c -rw-r--r-- 8.9 KB
parser.h -rw-r--r-- 1000 bytes
parsetok.c -rw-r--r-- 5.0 KB
pgen.c -rw-r--r-- 14.2 KB
pgenmain.c -rw-r--r-- 3.2 KB
printgrammar.c -rw-r--r-- 2.4 KB
tokenizer.c -rw-r--r-- 32.4 KB
tokenizer.h -rw-r--r-- 2.3 KB
tokenizer_pgen.c -rw-r--r-- 36 bytes

back to top