`realloc` might return a new pointer, so we need to update the location for the caller of this method so they see the right piece of memory with the bigger key.