• Barry Warsaw's avatar
    initerrors(): Eliminate circular reference which was causing a small · b01a7fa5
    Barry Warsaw yazdı
    but annoying memory leak.  This was introduced when PyExc_Exception
    was added; the loop above populating the PyExc_StandardError exception
    tuple started at index 1 in bltin_exc, but PyExc_Exception was added
    at index 0, so PyExc_StandardError was getting inserted in itself!
    How else can a tuple include itself?!
    
    Change the loop to start at index 2.
    
    This was a *fun* one! :-)
    b01a7fa5
bltinmodule.c 45 KB