summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--tests/mpf_compat.c1
-rw-r--r--tests/mpf_compat.h2
-rw-r--r--tests/mpfr_compat.c1
3 files changed, 3 insertions, 1 deletions
diff --git a/tests/mpf_compat.c b/tests/mpf_compat.c
index 3d5064f64..ea395fc7e 100644
--- a/tests/mpf_compat.c
+++ b/tests/mpf_compat.c
@@ -20,4 +20,5 @@ the Free Software Foundation, Inc., 59 Temple Place - Suite 330, Boston,
MA 02111-1307, USA. */
#define MPF
+#define mpf_free_str mpfr_free_str
#include "mpf_compat.h"
diff --git a/tests/mpf_compat.h b/tests/mpf_compat.h
index 07ddfcf33..574e21bd7 100644
--- a/tests/mpf_compat.h
+++ b/tests/mpf_compat.h
@@ -125,7 +125,7 @@ main ()
l = mpf_get_si (x);
u = mpf_get_ui (x);
s = mpf_get_str (NULL, &exp, 10, 10, x);
- free (s);
+ mpf_free_str (s);
/* Arithmetic Functions */
diff --git a/tests/mpfr_compat.c b/tests/mpfr_compat.c
index 383797fb5..d56203300 100644
--- a/tests/mpfr_compat.c
+++ b/tests/mpfr_compat.c
@@ -20,4 +20,5 @@ the Free Software Foundation, Inc., 59 Temple Place - Suite 330, Boston,
MA 02111-1307, USA. */
#define MPFR
+#define mpf_free_str mpfr_free_str
#include "mpf_compat.h"