Skip to content

Commit 0fd098f

Browse files
committed
Revert "Resolve leak reference on warning failure"
This reverts commit 143145f.
1 parent 143145f commit 0fd098f

File tree

1 file changed

+0
-2
lines changed

1 file changed

+0
-2
lines changed

Python/sysmodule.c

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -98,7 +98,6 @@ _PySys_GetRequiredAttr(PyObject *name)
9898
"sys.abiflags will be set to a meaningful value "
9999
"on all platforms in Python 3.16 instead of absent",
100100
/*stack_level=*/1) < 0) {
101-
Py_XDECREF(value);
102101
return NULL;
103102
}
104103
}
@@ -125,7 +124,6 @@ _PySys_GetRequiredAttrString(const char *name)
125124
"sys.abiflags will be set to a meaningful value "
126125
"on all platforms in Python 3.16 instead of absent",
127126
/*stack_level=*/1) < 0) {
128-
Py_XDECREF(value);
129127
return NULL;
130128
}
131129
}

0 commit comments

Comments
 (0)