I was wondering about how realloc is implemented: so lets say you originally had an n-byte array malloc'ed and you want to now have a 2n-byte array. Then realloc can increase the bytes available for use right?
And if there's no immediate space near your original memory block then realloc will move the original n-byte array to a new location to make room for the 2n-byte, right?
But then in doing that move does realloc free the location originally used for the n-byte array?
Thanks!