Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 447e7c3

Browse files
committed
Fix memory leak
1 parent 646049e commit 447e7c3

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

Objects/floatobject.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -84,7 +84,7 @@ PyFloat_FromString(PyObject *v)
8484
PyUnicode_GET_SIZE(v),
8585
s_buffer,
8686
NULL))
87-
return NULL;
87+
goto error;
8888
s = s_buffer;
8989
len = strlen(s);
9090
}

0 commit comments

Comments
 (0)