Kaydet (Commit) c98da3d8 authored tarafından Georg Brandl's avatar Georg Brandl

Backport rev. 55783:

Patch by Tim Delany (missing DECREF). SF #1731330.
üst fc41f199
...@@ -243,6 +243,7 @@ PyObject* cache_display(Cache* self, PyObject* args) ...@@ -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);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment