--- libeio/eio.c 2008/06/17 23:34:20 1.19 +++ libeio/eio.c 2008/06/19 09:05:43 1.20 @@ -905,6 +905,7 @@ int res = 0; X_LOCK (wrklock); + /* the corresponding closedir is in ETP_WORKER_CLEAR */ self->dirp = dirp = opendir (req->ptr1); req->flags |= EIO_FLAG_PTR2_FREE; req->ptr2 = names = malloc (memlen);