bpo-41798: Allocate _socket module C API on the heap (GH-24126)

This commit is contained in:
Erlend Egeberg Aasland 2021-01-06 20:43:06 +01:00 committed by GitHub
parent ff8458b918
commit f22b7ca1af
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 48 additions and 17 deletions

View file

@ -342,7 +342,8 @@ typedef struct {
*/
/* C API for usage by other Python modules */
/* C API for usage by other Python modules.
* Always add new things to the end for binary compatibility. */
typedef struct {
PyTypeObject *Sock_Type;
PyObject *error;