Skip to content

Commit eb0b861

Browse files
committed
Fix refleak
1 parent 3871012 commit eb0b861

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

Python/errors.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -264,6 +264,7 @@ _PyErr_SetKeyError(PyObject *arg)
264264
}
265265

266266
_PyErr_SetObject(tstate, (PyObject*)Py_TYPE(exc), exc);
267+
Py_DECREF(exc);
267268
}
268269

269270
void

0 commit comments

Comments
 (0)