Message98474
> if PyFile_FromFile fails for another reason (PyString_FromString(name)
> runs out of memory), the fp is not closed and the caller is right to
> call fclose().
As far as I understand, the fp is never left open, when PyFile_FromFile returns NULL. So there's no reason to call fclose on it.
However I found a reference leak in the case you describe (PyString_FromString(name) == NULL).
It is fixed with this last update. |
|
Date |
User |
Action |
Args |
2010-01-28 20:11:28 | flox | set | recipients:
+ flox, brett.cannon, amaury.forgeotdarc, r.david.murray, Trundle |
2010-01-28 20:11:28 | flox | set | messageid: <1264709488.41.0.791846924469.issue7732@psf.upfronthosting.co.za> |
2010-01-28 20:11:26 | flox | link | issue7732 messages |
2010-01-28 20:11:26 | flox | create | |
|