Message139724
| Author |
rfk |
| Recipients |
rfk |
| Date |
2011年07月04日.00:56:39 |
| SpamBayes Score |
9.509825e-05 |
| Marked as misclassified |
No |
| Message-id |
<1309741000.66.0.461732700198.issue12483@psf.upfronthosting.co.za> |
| In-reply-to |
| Content |
According to the docs here:
http://docs.python.org/c-api/gcsupport.html
Any object that uses PyObject_GC_Track in its constructor must call PyObject_GC_UnTrack in its deallocator. The CThunkObject in _ctypes does the former but not the later. Attached patch adds a call to PyObject_GC_UnTrack.
This doesn't fix any particular bug I was seeing, I just happened to be going through the _ctypes sources (you know, for fun...) and noticed this discrepancy. |
|
History
|
|---|
| Date |
User |
Action |
Args |
| 2011年07月04日 00:56:40 | rfk | set | recipients:
+ rfk |
| 2011年07月04日 00:56:40 | rfk | set | messageid: <1309741000.66.0.461732700198.issue12483@psf.upfronthosting.co.za> |
| 2011年07月04日 00:56:40 | rfk | link | issue12483 messages |
| 2011年07月04日 00:56:39 | rfk | create |
|