diff options
author | Kevin Ryde <user42@zip.com.au> | 2001-01-26 23:00:59 +0100 |
---|---|---|
committer | Kevin Ryde <user42@zip.com.au> | 2001-01-26 23:00:59 +0100 |
commit | 5a106254bf7c26995b430dd3fd059b7f53f1c7fe (patch) | |
tree | 59da34ffa41e31a4d6b697dade9fd4d930198bb1 /mpf/dump.c | |
parent | a803d8d9798eda004507e590ccc848aa176fff57 (diff) | |
download | gmp-5a106254bf7c26995b430dd3fd059b7f53f1c7fe.tar.gz |
* mpz/get_str.c, mpf/get_str.c: Make allocated string block exactly
strlen(str)+1 bytes.
* mpz/dump.c, mpf/dump.c: Use this size when freeing.
Diffstat (limited to 'mpf/dump.c')
-rw-r--r-- | mpf/dump.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/mpf/dump.c b/mpf/dump.c index e7cf3455b..6b7b4ac6a 100644 --- a/mpf/dump.c +++ b/mpf/dump.c @@ -39,5 +39,5 @@ mpf_dump (mpf_srcptr u) printf ("-0.%se%ld\n", str + 1, exp); else printf ("0.%se%ld\n", str, exp); - (*__gmp_free_func) (str, 0);/* ??? broken alloc interface, pass what size ??? */ + (*__gmp_free_func) (str, strlen (str) + 1); } |