diff options
author | Arnold D. Robbins <arnold@skeeve.com> | 2014-07-31 19:42:41 +0300 |
---|---|---|
committer | Arnold D. Robbins <arnold@skeeve.com> | 2014-07-31 19:42:41 +0300 |
commit | 825dd9a1839ca42c4ed6152de41515958e11660d (patch) | |
tree | 084b6601e7717dd1f0059675fff0fbb3d1697c68 /mpfr.c | |
parent | 59c75072583f4460c5eca6e0aae70f36dbaecd62 (diff) | |
download | egawk-825dd9a1839ca42c4ed6152de41515958e11660d.tar.gz egawk-825dd9a1839ca42c4ed6152de41515958e11660d.tar.bz2 egawk-825dd9a1839ca42c4ed6152de41515958e11660d.zip |
Clean up some memory in MPFR.
Diffstat (limited to 'mpfr.c')
-rw-r--r-- | mpfr.c | 9 |
1 files changed, 9 insertions, 0 deletions
@@ -89,6 +89,15 @@ init_mpfr(mpfr_prec_t prec, const char *rmode) register_exec_hook(mpg_interpret, 0); } +/* cleanup_mpfr --- clean stuff up, mainly for valgrind */ + +void +cleanup_mpfr(void) +{ + mpfr_clear(_mpf_t1); + mpfr_clear(_mpf_t2); +} + /* mpg_node --- allocate a node to store MPFR float or GMP integer */ NODE * |