diff options
author | Mark Dickinson <dickinsm@gmail.com> | 2010-01-17 14:41:03 (GMT) |
---|---|---|
committer | Mark Dickinson <dickinsm@gmail.com> | 2010-01-17 14:41:03 (GMT) |
commit | a3ba4a15ec26a973f625a2f2f92cf7ff7d34bd79 (patch) | |
tree | c0e0f97d406c91e58c7df650ceceeefae1a8c4c7 /Python/dtoa.c | |
parent | 20d6c153275de051f0800a266d511ea5bef782ce (diff) | |
download | cpython-a3ba4a15ec26a973f625a2f2f92cf7ff7d34bd79.zip cpython-a3ba4a15ec26a973f625a2f2f92cf7ff7d34bd79.tar.gz cpython-a3ba4a15ec26a973f625a2f2f92cf7ff7d34bd79.tar.bz2 |
Merged revisions 77579 via svnmerge from
svn+ssh://pythondev@svn.python.org/python/branches/py3k
................
r77579 | mark.dickinson | 2010-01-17 14:39:12 +0000 (Sun, 17 Jan 2010) | 9 lines
Merged revisions 77578 via svnmerge from
svn+ssh://pythondev@svn.python.org/python/trunk
........
r77578 | mark.dickinson | 2010-01-17 13:37:57 +0000 (Sun, 17 Jan 2010) | 2 lines
Issue #7632: Fix a memory leak in _Py_dg_strtod.
........
................
Diffstat (limited to 'Python/dtoa.c')
-rw-r--r-- | Python/dtoa.c | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/Python/dtoa.c b/Python/dtoa.c index 9eb8cdb..24ce922 100644 --- a/Python/dtoa.c +++ b/Python/dtoa.c @@ -1939,8 +1939,14 @@ _Py_dg_strtod(const char *s00, char **se) dval(&rv) += adj.d; if ((word0(&rv) & Exp_mask) >= Exp_msk1*(DBL_MAX_EXP+Bias-P)) { - if (word0(&rv0) == Big0 && word1(&rv0) == Big1) + if (word0(&rv0) == Big0 && word1(&rv0) == Big1) { + Bfree(bb); + Bfree(bd); + Bfree(bs); + Bfree(bd0); + Bfree(delta); goto ovfl; + } word0(&rv) = Big0; word1(&rv) = Big1; goto cont; |