Message194595
| Author |
ncoghlan |
| Recipients |
brett.cannon, eric.snow, loewis, ncoghlan, pitrou, sbt |
| Date |
2013年08月07日.01:49:55 |
| SpamBayes Score |
-1.0 |
| Marked as misclassified |
Yes |
| Message-id |
<1375840196.98.0.117433808484.issue18674@psf.upfronthosting.co.za> |
| In-reply-to |
| Content |
It seems to me that the more appropriate change here would be to redefine PyState_FindModule as return a *new* ref rather than a borrowed ref and have it do the Py_INCREF before returning.
Code using it would then need to add an appropriate Py_DECREF. A reference leak is generally a less dangerous bug than an early free. |
|
History
|
|---|
| Date |
User |
Action |
Args |
| 2013年08月07日 01:49:57 | ncoghlan | set | recipients:
+ ncoghlan, loewis, brett.cannon, pitrou, sbt, eric.snow |
| 2013年08月07日 01:49:56 | ncoghlan | set | messageid: <1375840196.98.0.117433808484.issue18674@psf.upfronthosting.co.za> |
| 2013年08月07日 01:49:56 | ncoghlan | link | issue18674 messages |
| 2013年08月07日 01:49:56 | ncoghlan | create |
|