Thanks to visit codestin.com Credit goes to github.com
We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent a05ada3 commit 943f339Copy full SHA for 943f339
1 file changed
Objects/floatobject.c
@@ -223,13 +223,19 @@ PyFloat_FromString(PyObject *v)
223
p++;
224
}
225
if (PyOS_strnicmp(p, "inf", 4) == 0) {
226
+ if (s_buffer != NULL)
227
+ PyMem_FREE(s_buffer);
228
Py_RETURN_INF(sign);
229
230
if (PyOS_strnicmp(p, "infinity", 9) == 0) {
231
232
233
234
235
#ifdef Py_NAN
236
if(PyOS_strnicmp(p, "nan", 4) == 0) {
237
238
239
Py_RETURN_NAN;
240
241
#endif
0 commit comments