diff options
author | fsbs <fsbs@users.noreply.github.com> | 2021-11-05 13:06:09 +0000 |
---|---|---|
committer | fsbs <fsbs@users.noreply.github.com> | 2021-11-05 14:06:09 +0100 |
commit | 7333f21a094e8904bc0e318963dc70dea0529381 (patch) | |
tree | bd995e076722bb5343f3dbaaeafd3a3a88edd6b8 | |
parent | 7f2bf316b7fd23d61d6da71a1bc1b8e737dedbf5 (diff) | |
download | pycurl-7333f21a094e8904bc0e318963dc70dea0529381.tar.gz |
slist & httppost: directly type.tp_free in dealloc
-rw-r--r-- | src/easy.c | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -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 = { |