diff options
Diffstat (limited to 'libdiskfs')
-rw-r--r-- | libdiskfs/dir-link.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/libdiskfs/dir-link.c b/libdiskfs/dir-link.c index 473b995e..a43734c8 100644 --- a/libdiskfs/dir-link.c +++ b/libdiskfs/dir-link.c @@ -83,5 +83,8 @@ diskfs_S_dir_link (struct protid *filecred, out: mutex_unlock (&dnp->lock); mutex_unlock (&np->lock); + if (!error) + /* MiG won't do this for us, which it ought to. */ + mach_port_deallocate (mach_task_self (), dircred->pi.port); return error; } |