Serhiy Storchaka added the comment:

Could you please regenerate the patch for Rietveld Berker?

_PyBytes_Resize(&res, r) always sets res to NULL if fails. Thus the following 
code is correct. No need to check the return value.

    if (n > r)
        _PyBytes_Resize(&res, r);
    return res;


Python tracker <>
Python-bugs-list mailing list

Reply via email to