Edgewall Software

Ticket #166: cspeedups-memleak-r796.diff

File cspeedups-memleak-r796.diff, 351 bytes (added by hyuga <hyugaricdeau@…>, 4 years ago)

Patch for the missing PyDECREF. Other than that, I didn't notice anything.

  • genshi/_speedups.c

     
    417417    } 
    418418    PyTuple_SET_ITEM(args, 0, result); 
    419419    result = PyString_Format(format, args); 
     420    Py_DECREF(format); 
    420421    Py_DECREF(args); 
    421422    return result; 
    422423}