diff options
Diffstat (limited to 'Modules/_sre.c')
-rw-r--r-- | Modules/_sre.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/Modules/_sre.c b/Modules/_sre.c index 4511c1b..64fc513 100644 --- a/Modules/_sre.c +++ b/Modules/_sre.c @@ -1704,7 +1704,7 @@ getstring(PyObject* string, Py_ssize_t* p_length, int* p_charsize) /* Release the buffer immediately --- possibly dangerous but doing something else would require some re-factoring */ - PyObject_ReleaseBuffer(string, &view); + PyBuffer_Release(&view); if (bytes < 0) { PyErr_SetString(PyExc_TypeError, "buffer has negative size"); |