From f254aab09891df400c305caa2ccd99ec448439a0 Mon Sep 17 00:00:00 2001 From: Eric Smith Date: Sun, 26 Apr 2009 10:05:11 +0000 Subject: [PATCH] Note that the caller is resposible for freeing the result of PyOS_double_to_string. --- Doc/c-api/conversion.rst | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/Doc/c-api/conversion.rst b/Doc/c-api/conversion.rst index 51bc44bc8eb..4d1f42f0688 100644 --- a/Doc/c-api/conversion.rst +++ b/Doc/c-api/conversion.rst @@ -109,7 +109,8 @@ The following functions provide locale-independent string to number conversions. *val* is a finite number, an infinite number, or not a number, respectively. The return value is a pointer to *buffer* with the converted string or - *NULL* if the conversion failed. + *NULL* if the conversion failed. The caller is responsible for freeing the + returned string by calling :cfunc:`PyMem_Free`. .. versionadded:: 2.7