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:
Neal Norwitz 2007-08-27 03:22:50 +00:00
parent 44c19f64a5
commit 247b5154ac
1 changed files with 1 additions and 0 deletions

View File

@ -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);