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 daniel.urban
Recipients ajaksu2, belopolsky, brett.cannon, daniel.urban, doerwalter, eric.araujo, ggenellina, kawai, l0nwlf, mark.dickinson, pitrou, r.david.murray, rafe, techtonik, tim.peters, vstinner
Date 2010-06-06.06:54:44
SpamBayes Score 0.00066023023
Marked as misclassified No
Message-id <>
Isn't it possible, that in the issue5094b.diff patch, in the new_timezone_ex function, in this part:

self = (PyDateTime_TimeZone *)type->tp_alloc(type, 0);
if (self == NULL)
    return NULL;

should be a Py_DECREF(offset) call?

I mean like:

self = (PyDateTime_TimeZone *)type->tp_alloc(type, 0);
if (self == NULL) {
    return NULL;

I think the refcount of offset has always been incremented, so in case of an error, it should be decremented (as in the other error handling parts of the function).
Date User Action Args
2010-06-06 06:54:47daniel.urbansetrecipients: + daniel.urban, tim.peters, doerwalter, brett.cannon, mark.dickinson, belopolsky, ggenellina, pitrou, vstinner, techtonik, ajaksu2, kawai, eric.araujo, r.david.murray, rafe, l0nwlf
2010-06-06 06:54:47daniel.urbansetmessageid: <>
2010-06-06 06:54:45daniel.urbanlinkissue5094 messages
2010-06-06 06:54:44daniel.urbancreate