8000 put back the Py_DECREF(exc) · python/cpython@09f2ab6 · GitHub
[go: up one dir, main page]

Skip to content

Commit 09f2ab6

Browse files
committed
put back the Py_DECREF(exc)
1 parent 0298a04 commit 09f2ab6

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

Objects/exceptions.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3852,6 +3852,7 @@ _PyErr_TrySetFromCause(const char *format, ...)
38523852
msg_prefix = PyUnicode_FromFormatV(format, vargs);
38533853
va_end(vargs);
38543854
if (msg_prefix == NULL) {
3855+
Py_DECREF(exc);
38553856
return NULL;
38563857
}
38573858

0 commit comments

Comments
 (0)
0