vfs_fruit: avoid dereferencing a freed object in an error case