summaryrefslogtreecommitdiff
path: root/mpfr.texi
diff options
context:
space:
mode:
authorvlefevre <vlefevre@280ebfd0-de03-0410-8827-d642c229c3f4>2007-07-03 16:11:39 +0000
committervlefevre <vlefevre@280ebfd0-de03-0410-8827-d642c229c3f4>2007-07-03 16:11:39 +0000
commit6affaf1441bd7f7839bc043437bc042bd2ce28e2 (patch)
treebb5a19b3b8db7e8edd18a139557666e18b3c793c /mpfr.texi
parentea53a94d771b99a9ec38818f1565e058748b0df7 (diff)
downloadmpfr-6affaf1441bd7f7839bc043437bc042bd2ce28e2.tar.gz
Fixed the bug reported by David Billinghurst to the MPFR mailing-list
on 2007-07-03 (memory leaks under some conditions): * moved the free_l2b() function from tests/tests.c to free_cache.c; * mpfr_free_cache() (from free_cache.c) now calls free_l2b(); * as a consequence, no longer call free_l2b() in tests_end_mpfr(); * documented the behavior in mpfr.texi (under mpfr_free_cache). git-svn-id: svn://scm.gforge.inria.fr/svn/mpfr/trunk@4622 280ebfd0-de03-0410-8827-d642c229c3f4
Diffstat (limited to 'mpfr.texi')
-rw-r--r--mpfr.texi5
1 files changed, 3 insertions, 2 deletions
diff --git a/mpfr.texi b/mpfr.texi
index 7a206fff9..1d75eb7f1 100644
--- a/mpfr.texi
+++ b/mpfr.texi
@@ -1634,10 +1634,11 @@ use @code{mpfr_free_cache}.
@end deftypefun
@deftypefun void mpfr_free_cache (void)
-Free the cache used by the functions computing constants if needed
-(currently
+Free various caches used by MPFR internally, in particular the
+caches used by the functions computing constants (currently
@code{mpfr_const_log2}, @code{mpfr_const_pi},
@code{mpfr_const_euler} and @code{mpfr_const_catalan}).
+You should call this function when terminating a thread.
@end deftypefun
@deftypefun int mpfr_sum (mpfr_t @var{rop}, mpfr_ptr const @var{tab}[], unsigned long @var{n}, mp_rnd_t @var{rnd})