This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author serhiy.storchaka
Recipients asvetlov, qualab, serhiy.storchaka, vstinner
Date 2014-01-29.14:03:33
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1391004213.41.0.149076233097.issue20434@psf.upfronthosting.co.za>
In-reply-to
Content
There are other places where Py_DECREF is called after failed _PyBytes_Resize(). For example in PyBytes_FromObject():

            if (_PyBytes_Resize(&new, size) < 0)
                goto error;
...
  error:
    /* Error handling when new != NULL */
    Py_XDECREF(it);
    Py_DECREF(new);
    return NULL;
History
Date User Action Args
2014-01-29 14:03:33serhiy.storchakasetrecipients: + serhiy.storchaka, vstinner, asvetlov, qualab
2014-01-29 14:03:33serhiy.storchakasetmessageid: <1391004213.41.0.149076233097.issue20434@psf.upfronthosting.co.za>
2014-01-29 14:03:33serhiy.storchakalinkissue20434 messages
2014-01-29 14:03:33serhiy.storchakacreate