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 alex.henrie
Recipients alex.henrie
Date 2020-01-11.20:13:33
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1578773613.93.0.403344641263.issue39307@roundup.psfhosted.org>
In-reply-to
Content
The parsetok function currently contains the following code:

    if (!growable_comment_array_init(&type_ignores, 10)) {
        err_ret->error = E_NOMEM;
        PyTokenizer_Free(tok);
        return NULL;
    }

    if ((ps = PyParser_New(g, start)) == NULL) {
        err_ret->error = E_NOMEM;
        PyTokenizer_Free(tok);
        return NULL;
    }

If PyParser_New fails, there is a memory leak because growable_comment_array_deallocate is not called on type_ignores.
History
Date User Action Args
2020-01-11 20:13:33alex.henriesetrecipients: + alex.henrie
2020-01-11 20:13:33alex.henriesetmessageid: <1578773613.93.0.403344641263.issue39307@roundup.psfhosted.org>
2020-01-11 20:13:33alex.henrielinkissue39307 messages
2020-01-11 20:13:33alex.henriecreate