diff options
author | Tim Peters <tim.peters@gmail.com> | 2003-11-20 21:21:46 (GMT) |
---|---|---|
committer | Tim Peters <tim.peters@gmail.com> | 2003-11-20 21:21:46 (GMT) |
commit | 403a2032230087943a52453deef93769f22461f8 (patch) | |
tree | fb760ac52c5fc2d9a83dd444f0d8dd15d28b50ce /Include | |
parent | 901dc983168d4ca706ed664a8f5134ee3add26ed (diff) | |
download | cpython-403a2032230087943a52453deef93769f22461f8.zip cpython-403a2032230087943a52453deef93769f22461f8.tar.gz cpython-403a2032230087943a52453deef93769f22461f8.tar.bz2 |
SF bug 839548: Bug in type's GC handling causes segfaults.
Also SF patch 843455.
This is a critical bugfix.
I'll backport to 2.3 maint, but not beyond that. The bugs this fixes
have been there since weakrefs were introduced.
Diffstat (limited to 'Include')
-rw-r--r-- | Include/weakrefobject.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/Include/weakrefobject.h b/Include/weakrefobject.h index b6fc389..effa0ed 100644 --- a/Include/weakrefobject.h +++ b/Include/weakrefobject.h @@ -39,6 +39,8 @@ PyAPI_FUNC(PyObject *) PyWeakref_GetObject(PyObject *ref); PyAPI_FUNC(long) _PyWeakref_GetWeakrefCount(PyWeakReference *head); +PyAPI_FUNC(void) _PyWeakref_ClearRef(PyWeakReference *self); + #define PyWeakref_GET_OBJECT(ref) (((PyWeakReference *)(ref))->wr_object) |