diff options
-rw-r--r-- | libdiskfs/dir-lookup.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/libdiskfs/dir-lookup.c b/libdiskfs/dir-lookup.c index fd0ebc72..59e850cd 100644 --- a/libdiskfs/dir-lookup.c +++ b/libdiskfs/dir-lookup.c @@ -245,6 +245,10 @@ diskfs_S_dir_lookup (struct protid *dircred, _diskfs_translator_callback2, retry, retryname, returned_port); + /* fetch_root copies DIRPORT for success, so we always should + deallocate our send right. */ + mach_port_deallocate (mach_task_self (), dirport); + if (error != ENOENT) { diskfs_nrele (dnp); |