Issue #18368: PyOS_StdioReadline() no longer leaks memory when realloc() fails.