[FIX]: Resource leak, return without closedir