summaryrefslogtreecommitdiff
path: root/Python/ast.c
diff options
context:
space:
mode:
authorVictor Stinner <vstinner@redhat.com>2019-03-13 17:55:01 +0100
committerGitHub <noreply@github.com>2019-03-13 17:55:01 +0100
commit9776b0636ae39668d3ce1c006d4be01dad01bf9f (patch)
tree4e51efb7dfc17dee9f91909d60c4bb66e915b3ff /Python/ast.c
parent86900a49000c4a96ad1dc34e49d8af4245b08843 (diff)
downloadcpython-git-9776b0636ae39668d3ce1c006d4be01dad01bf9f.tar.gz
bpo-36262: Fix _Py_dg_strtod() memory leak (goto undfl) (GH-12276)
Fix an unlikely memory leak on conversion from string to float in the function _Py_dg_strtod() used by float(str), complex(str), pickle.load(), marshal.load(), etc. Fix an unlikely memory leak in _Py_dg_strtod() on "undfl:" label: rewrite memory management in this function to always release all memory before exiting the function. Initialize variables to NULL, and set them to NULL after calling Bfree() at the "cont:" label. Note: Bfree(NULL) is well defined: it does nothing.
Diffstat (limited to 'Python/ast.c')
0 files changed, 0 insertions, 0 deletions