mirror of https://github.com/python/cpython.git
This adds a leak, but fixes a crash. The leaking code is:
"{0:.{precision}s}".format('hello world', precision=5) I pretty sure it's because of the 'precision' keyword. Still need to investigate further.
This commit is contained in:
parent
44c19f64a5
commit
247b5154ac
|
@ -416,6 +416,7 @@ get_field_object(SubString *input, PyObject *args, PyObject *kwargs)
|
|||
Py_DECREF(key);
|
||||
goto error;
|
||||
}
|
||||
Py_INCREF(obj);
|
||||
} else {
|
||||
/* look up in args */
|
||||
obj = PySequence_GetItem(args, index);
|
||||
|
|
Loading…
Reference in New Issue