Merge pull request #44 from ajeddeloh/fix-invalid-free

rootdev: do not malloc/free entry from readdir