From: Eric Smith Date: Sun, 26 Apr 2009 10:05:11 +0000 (+0000) Subject: Note that the caller is resposible for freeing the result of PyOS_double_to_string. X-Git-Tag: v2.7a1~1370 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=f254aab09891df400c305caa2ccd99ec448439a0;p=python Note that the caller is resposible for freeing the result of PyOS_double_to_string. --- diff --git a/Doc/c-api/conversion.rst b/Doc/c-api/conversion.rst index 51bc44bc8e..4d1f42f068 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