summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorfsbs <fsbs@users.noreply.github.com>2021-10-19 16:57:43 +0000
committerfsbs <fsbs@users.noreply.github.com>2021-10-19 18:57:43 +0200
commit2d672b6a6cfdbb55d54c7d07c2ef829eb64acbba (patch)
tree1240bcd2c82e159c2bccb1f4ae5fb90166e8bb73 /src
parent6b4fee4c3c18928f859c87641992762a1224b4b5 (diff)
downloadpycurl-2d672b6a6cfdbb55d54c7d07c2ef829eb64acbba.tar.gz
do_curl_new: allocate subtype instead of Curl_Type
Diffstat (limited to 'src')
-rw-r--r--src/easy.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/easy.c b/src/easy.c
index 79c3d48..3dd7353 100644
--- a/src/easy.c
+++ b/src/easy.c
@@ -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;