allocate in realpath() if necessary