Minh Nguyen <md6nguyen@yahoo.com> writes: > > 1/ When GMP reallocates a buffer, would the old buffer be freed? It's usually done with a realloc call, but in a couple of places by mallocing a new buffer and freeing the old. > 2/ Is it true that GMP only considers to enlarge a buffer, but never > considers to shorten it? Yes.