mirror of
https://github.com/python/cpython.git
synced 2025-10-15 03:10:29 +00:00
gh-129271: Fix reference leak with unicode writer in fast path in the json module (#129272)
This commit is contained in:
parent
e119526edf
commit
7a54a653b7
1 changed files with 1 additions and 0 deletions
|
@ -417,6 +417,7 @@ scanstring_unicode(PyObject *pystr, Py_ssize_t end, int strict, Py_ssize_t *next
|
|||
if (ret == NULL) {
|
||||
goto bail;
|
||||
}
|
||||
PyUnicodeWriter_Discard(writer);
|
||||
*next_end_ptr = next + 1;;
|
||||
return ret;
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue