Skip to content

Commit 50b2a90

Browse files
committed
Fix ref counting
1 parent 00c0c3b commit 50b2a90

File tree

1 file changed

+0
-2
lines changed

1 file changed

+0
-2
lines changed

Python/errors.c

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1713,15 +1713,13 @@ format_unraisable_v(const char *format, va_list va, PyObject *obj)
17131713
}
17141714

17151715
if (_PySys_Audit(tstate, "sys.unraisablehook", "OO", hook, hook_args) < 0) {
1716-
Py_DECREF(hook);
17171716
Py_DECREF(hook_args);
17181717
err_msg_str = "Exception ignored in audit hook";
17191718
obj = NULL;
17201719
goto error;
17211720
}
17221721

17231722
if (hook == Py_None) {
1724-
Py_DECREF(hook);
17251723
Py_DECREF(hook_args);
17261724
goto default_hook;
17271725
}

0 commit comments

Comments
 (0)