diff options
author | fsbs <fsbs@users.noreply.github.com> | 2021-10-19 16:57:43 +0000 |
---|---|---|
committer | fsbs <fsbs@users.noreply.github.com> | 2021-10-19 18:57:43 +0200 |
commit | 2d672b6a6cfdbb55d54c7d07c2ef829eb64acbba (patch) | |
tree | 1240bcd2c82e159c2bccb1f4ae5fb90166e8bb73 /src | |
parent | 6b4fee4c3c18928f859c87641992762a1224b4b5 (diff) | |
download | pycurl-2d672b6a6cfdbb55d54c7d07c2ef829eb64acbba.tar.gz |
do_curl_new: allocate subtype instead of Curl_Type
Diffstat (limited to 'src')
-rw-r--r-- | src/easy.c | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -96,7 +96,7 @@ do_curl_new(PyTypeObject *subtype, PyObject *args, PyObject *kwds) } /* Allocate python curl object */ - self = (CurlObject *) p_Curl_Type->tp_alloc(p_Curl_Type, 0); + self = (CurlObject *) subtype->tp_alloc(subtype, 0); if (self == NULL) return NULL; |