[Python-checkins] cpython: Issue #25349, #26249: Fix memleak in formatfloat()

victor.stinner python-checkins at python.org
Tue Apr 26 06:36:36 EDT 2016


https://hg.python.org/cpython/rev/090502a0c69c
changeset: 101155:090502a0c69c
user: Victor Stinner <victor.stinner at gmail.com>
date: Tue Apr 26 12:35:13 2016 +0200
summary:
 Issue #25349, #26249: Fix memleak in formatfloat()
files:
 Objects/bytesobject.c | 1 +
 1 files changed, 1 insertions(+), 0 deletions(-)
diff --git a/Objects/bytesobject.c b/Objects/bytesobject.c
--- a/Objects/bytesobject.c
+++ b/Objects/bytesobject.c
@@ -438,6 +438,7 @@
 if (str == NULL)
 return NULL;
 Py_MEMCPY(str, p, len);
+ PyMem_Free(p);
 str += len;
 return str;
 }
-- 
Repository URL: https://hg.python.org/cpython


More information about the Python-checkins mailing list

AltStyle によって変換されたページ (->オリジナル) /