mirror of https://github.com/python/cpython
Patch by Tim Delany (missing DECREF). SF #1731330.
This commit is contained in:
parent
f9a0ea8ce1
commit
956f0f71f9
|
@ -243,6 +243,7 @@ PyObject* pysqlite_cache_display(pysqlite_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…
Reference in New Issue