Hotfix: memleak with realpath()