Ask realpath to allocate memory.