8000 Fix another leak · python/cpython@f86be9c · GitHub
[go: up one dir, main page]

Skip to content

Commit f86be9c

Browse files
committed
Fix another leak
1 parent 5fbd4d5 commit f86be9c

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

Objects/typevarobject.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1315,6 +1315,7 @@ typealias_repr(PyObject *self)
13151315
goto error;
13161316
}
13171317
result = PyUnicode_FromFormat("<type alias %s[%U]: %U>", ta->name, params_repr, value_repr);
1318+
Py_DECREF(params_repr);
13181319
}
13191320
else {
13201321
result = PyUnicode_FromFormat("<type alias %s: %U>", ta->name, value_repr);

0 commit comments

Comments
 (0)
0