Skip to content

Commit c15635b

Browse files
committed
Add missing decref
1 parent 7f8d1af commit c15635b

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

Python/_warnings.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1383,6 +1383,7 @@ _PyErr_WarnExplicitObjectWithContext(PyObject *category, PyObject *message,
13831383
int rc = PyErr_WarnExplicitObject(category, message, filename, lineno,
13841384
module, registry);
13851385
Py_DECREF(unused_filename);
1386+
Py_DECREF(registry);
13861387
Py_DECREF(module);
13871388
return rc;
13881389
}

0 commit comments

Comments
 (0)