[PATCH] mini-gmp: pass correct old_size to custom reallocate function

Niels Möller nisse at lysator.liu.se
Mon Mar 9 13:08:04 UTC 2020


Marco Bodrato <bodrato at mail.dm.unipi.it> writes:

> -    gmp_free_func (rden, 0);
> +    gmp_free_func (rden, lden * sizeof (char));

sizeof (char) == 1 by definition, so no need to multiply with it.

Regards,
/Niels

-- 
Niels Möller. PGP-encrypted email is preferred. Keyid 368C6677.
Internet email is subject to wholesale government surveillance.


More information about the gmp-devel mailing list