Skip to content

Commit 3b3ae7c

Browse files
committed
Refcounting fix
1 parent 945b450 commit 3b3ae7c

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

Modules/xxlimited.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -180,6 +180,7 @@ Xxo_new(PyTypeObject *type, PyObject *args, PyObject *kwargs) {
180180
// function zeroes instance memory; we don't need to do it again.
181181
XxoObject_Data *xxo_data = Xxo_get_data(self);
182182
if (xxo_data == NULL) {
183+
Py_DECREF(self);
183184
return NULL;
184185
}
185186
xxo_data->x_attr = NULL;

0 commit comments

Comments
 (0)