Message249625
If PyDict_New() fails (ex: memory allocation failure), odict_new() returns a new OrderedDict with an exception set. It's a bug. Attached patch fixes it.
odict_new() constructor also returns NULL without destroying the newly created object if _odict_initialize() fails. My patch also fixes this.
My patch inlines _odict_initialize() into odict_new() and avoids useless initialization to 0. |
|
Date |
User |
Action |
Args |
2015-09-03 09:53:53 | vstinner | set | recipients:
+ vstinner, eric.snow |
2015-09-03 09:53:53 | vstinner | set | messageid: <1441274033.3.0.407992349306.issue24992@psf.upfronthosting.co.za> |
2015-09-03 09:53:53 | vstinner | link | issue24992 messages |
2015-09-03 09:53:53 | vstinner | create | |
|