summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorfsbs <fsbs@users.noreply.github.com>2021-11-05 13:06:09 +0000
committerfsbs <fsbs@users.noreply.github.com>2021-11-05 14:06:09 +0100
commit7333f21a094e8904bc0e318963dc70dea0529381 (patch)
treebd995e076722bb5343f3dbaaeafd3a3a88edd6b8
parent7f2bf316b7fd23d61d6da71a1bc1b8e737dedbf5 (diff)
downloadpycurl-7333f21a094e8904bc0e318963dc70dea0529381.tar.gz
slist & httppost: directly type.tp_free in dealloc
-rw-r--r--src/easy.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/easy.c b/src/easy.c
index 2b1e296..3a23a79 100644
--- a/src/easy.c
+++ b/src/easy.c
@@ -65,7 +65,7 @@ do_curl_slist_dealloc(CurlSlistObject *self) {
curl_slist_free_all(self->slist);
self->slist = NULL;
}
- Py_TYPE(self)->tp_free((PyObject *) self);
+ CurlSlist_Type.tp_free(self);
}
PYCURL_INTERNAL PyTypeObject CurlSlist_Type = {
@@ -113,7 +113,7 @@ do_curl_httppost_dealloc(CurlHttppostObject *self) {
self->httppost = NULL;
}
Py_CLEAR(self->reflist);
- Py_TYPE(self)->tp_free((PyObject *) self);
+ CurlHttppost_Type.tp_free(self);
}
PYCURL_INTERNAL PyTypeObject CurlHttppost_Type = {