mirror of
https://github.com/python/cpython.git
synced 2025-10-16 11:49:57 +00:00
Backport rev. 55783:
Patch by Tim Delany (missing DECREF). SF #1731330.
This commit is contained in:
parent
fc41f199ba
commit
c98da3d811
1 changed files with 1 additions and 0 deletions
|
@ -243,6 +243,7 @@ PyObject* cache_display(Cache* self, PyObject* args)
|
||||||
}
|
}
|
||||||
template = PyString_FromString("%s <- %s ->%s\n");
|
template = PyString_FromString("%s <- %s ->%s\n");
|
||||||
if (!template) {
|
if (!template) {
|
||||||
|
Py_DECREF(fmt_args);
|
||||||
return NULL;
|
return NULL;
|
||||||
}
|
}
|
||||||
display_str = PyString_Format(template, fmt_args);
|
display_str = PyString_Format(template, fmt_args);
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue