diff options
author | hanrot <hanrot@280ebfd0-de03-0410-8827-d642c229c3f4> | 2001-11-16 13:19:42 +0000 |
---|---|---|
committer | hanrot <hanrot@280ebfd0-de03-0410-8827-d642c229c3f4> | 2001-11-16 13:19:42 +0000 |
commit | 3ed10d1095d8b0376432a264ef1e51d6b7122b40 (patch) | |
tree | edc5710da0e4a49700dce8793394b46c9fc75fc5 /inp_str.c | |
parent | 0f1bb25ee90fe8b6f67805dd830b1371557774a5 (diff) | |
download | mpfr-3ed10d1095d8b0376432a264ef1e51d6b7122b40.tar.gz |
return -> MPFR_RET, patch d'un leak dans inp_str.c
git-svn-id: svn://scm.gforge.inria.fr/svn/mpfr/trunk@1546 280ebfd0-de03-0410-8827-d642c229c3f4
Diffstat (limited to 'inp_str.c')
-rw-r--r-- | inp_str.c | 3 |
1 files changed, 2 insertions, 1 deletions
@@ -78,9 +78,10 @@ mpfr_inp_str (mpfr_ptr rop, FILE *stream, int base, mp_rnd_t rnd_mode) str[str_size] = 0; retval = mpfr_set_str (rop, str, base, rnd_mode); + (*__gmp_free_func) (str, alloc_size); + if (retval == -1) return 0; /* error */ - (*__gmp_free_func) (str, alloc_size); return str_size + nread; } |