mirror of
https://github.com/python/cpython.git
synced 2025-09-26 18:29:57 +00:00
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
1 changed files with 1 additions and 0 deletions
|
@ -416,6 +416,7 @@ get_field_object(SubString *input, PyObject *args, PyObject *kwargs)
|
||||||
Py_DECREF(key);
|
Py_DECREF(key);
|
||||||
goto error;
|
goto error;
|
||||||
}
|
}
|
||||||
|
Py_INCREF(obj);
|
||||||
} else {
|
} else {
|
||||||
/* look up in args */
|
/* look up in args */
|
||||||
obj = PySequence_GetItem(args, index);
|
obj = PySequence_GetItem(args, index);
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue