We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 945b450 commit 3b3ae7cCopy full SHA for 3b3ae7c
1 file changed
Modules/xxlimited.c
@@ -180,6 +180,7 @@ Xxo_new(PyTypeObject *type, PyObject *args, PyObject *kwargs) {
180
// function zeroes instance memory; we don't need to do it again.
181
XxoObject_Data *xxo_data = Xxo_get_data(self);
182
if (xxo_data == NULL) {
183
+ Py_DECREF(self);
184
return NULL;
185
}
186
xxo_data->x_attr = NULL;
0 commit comments