]> granicus.if.org Git - python/commitdiff
Fix memory leak
authorNeal Norwitz <nnorwitz@gmail.com>
Sun, 12 Aug 2007 07:11:25 +0000 (07:11 +0000)
committerNeal Norwitz <nnorwitz@gmail.com>
Sun, 12 Aug 2007 07:11:25 +0000 (07:11 +0000)
Objects/floatobject.c

index 4260f50048ef3813733f3dc9119f53a314caf87b..908258cb3a69fd47a9f92b1aa5ed7ae42e02c8d5 100644 (file)
@@ -84,7 +84,7 @@ PyFloat_FromString(PyObject *v)
                                            PyUnicode_GET_SIZE(v),
                                            s_buffer,
                                            NULL))
-                       return NULL;
+                       goto error;
                s = s_buffer;
                len = strlen(s);
        }